in reply to use sysread to read non-blocking filehandle
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 Section
Seekers of Perl Wisdom
in reply to use sysread to read non-blocking filehandle
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; }