There's more than one way to do things | |
PerlMonks |
Re: Using Socketsby Thelonius (Priest) |
on Jun 08, 2003 at 14:29 UTC ( [id://264104]=note: print w/replies, xml ) | Need Help?? |
The problem is here: This slurp mode means that the read won't return until end of file on $fh. If you want to read everything that's available, use read or sysread. When read or sysread returns false (0 or undef), you have reached end of file (i.e. socket close).
In Section
Seekers of Perl Wisdom
|
|