Two calls to last doesn't look right. Maybe one of these should be a next?
if ($! == EAGAIN()) { print "\nEAGAIN is set\n"; last; } else { last; }
In reply to Re: use sysread to read non-blocking filehandle
by RichardK
in thread use sysread to read non-blocking filehandle
by x12345
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |