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; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: use sysread to read non-blocking filehandle
by x12345 (Novice) on Nov 04, 2014 at 13:45 UTC | |
by x12345 (Novice) on Nov 04, 2014 at 14:23 UTC | |
by Corion (Patriarch) on Nov 04, 2014 at 14:37 UTC |
In Section
Seekers of Perl Wisdom