|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^4: Stumped with select->can_read (buffered)by w1r3d (Initiate) |
| on Aug 03, 2012 at 21:07 UTC ( #985354=note: print w/ replies, xml ) | Need Help?? |
|
I tried doing that, but it didn't seem to work. My guess is that because one particular $fh is very busy, the while loop never ends? This *seems* to work at the moment:
My concern now is whether 1024 is too small of a buffer that I could miss something (if that's possible), or missing a newline character because of the buffer size. Would it be horrible (performance wise) to read one byte at a time until I reach a newline character, thus forming a real $line? Thanks again! Pedro
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||