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
In reply to Re: Stumped with select->can_read (buffered)
by tye
in thread Stumped with select->can_read
by w1r3d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |