[Chicago-talk] Reading from a socket

Paul Baker pbaker at where2getit.com
Thu Feb 19 10:44:51 CST 2004


On Feb 18, 2004, at 10:32 PM, Jay Strauss wrote:

>> Could you set the input record separater to null? Similar to doing
>> slurp mode where you set it to undef?
> ...
>> { local $/ = char(0); $result = <$s>; }
>>
>>>     return $result;
>>> }
>
> Thanks Paul,
>
> That's what I was wondering (albeit inarticulately).  I'll try it 
> tomorrow,
> and report back.

Oh and ooops, it should be chr(0) not char(0). My bad.

-- 
Paul Baker

"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety."
           -- Benjamin Franklin, 1759

GPG Key: http://homepage.mac.com/pauljbaker/public.asc




More information about the Chicago-talk mailing list