my $line = <$fh>;
This will block. You should not mix non-blocking and blocking I/O when trying to stay non-blocking.
select will only tell you if there is at least one byte readable on a handle. It doesn't tell you how many bytes are actually available on the handle wihtout blocking.
In reply to Re: First SELECT of FIFO still blocked ?
by Corion
in thread First SELECT of FIFO still blocked ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |