|go ahead... be a heretic|
Re^4: Stumped with select->can_read (buffered)by w1r3d (Initiate)
|on Aug 03, 2012 at 21:07 UTC||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?