in reply to Stumped with select->can_read
while(@ready = $sel->can_read) #... $line = <$fh>;
Don't mix buffered I/O with select. can_read() doesn't return a handle because there is nothing currently left to read from the file handle. But <$fh> left plenty of stuff to be read in the buffer.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stumped with select->can_read (buffered)
by w1r3d (Initiate) on Aug 03, 2012 at 20:18 UTC | |
by zentara (Cardinal) on Aug 03, 2012 at 20:43 UTC | |
by w1r3d (Initiate) on Aug 03, 2012 at 21:07 UTC | |
by tye (Sage) on Aug 03, 2012 at 21:24 UTC | |
by zentara (Cardinal) on Aug 04, 2012 at 08:00 UTC | |
by tye (Sage) on Aug 04, 2012 at 16:48 UTC |