in reply to Re^4: IO::Select and alarm()
in thread IO::Select and alarm()
Since my code DOES seems to work correctly,
$ perl -MIO::Select -E' my $sel = IO::Select->new(\*STDIN); $SIG{ALRM} = sub { }; alarm(1); while (my @ready = $sel->can_read()) { # ... } say "HERE"; ' HERE
The OP doesn't want to reach HERE, but apparently that's not a problem for you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: IO::Select and alarm()
by markseger (Beadle) on Nov 02, 2011 at 12:07 UTC | |
by ikegami (Patriarch) on Nov 02, 2011 at 19:34 UTC |