Bunch of don'ts:
Don't use ->getlines when using select, use sysread instead.
Don't use non-blocking, it's not needed.
Don't forget to check eval for failure - especially from a partial (non-blocking) read.
Don't forget to define $c_max :)
Don't forget about $child_pid = open(my $fh, "-|") self-forking open if you are just reading from a child.
In reply to Re: IO::Select, IO::Pipe, fork, Data loss
by Anonymous Monk
in thread IO::Select, IO::Pipe, fork, Data loss
by cyadav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |