pg has asked for the wisdom of the Perl Monks concerning the following question:
sub display_alarm { print join("-", localtime), "\n"; die "alarm!"; } $SIG{'ALRM'} = \&display_alarm; print join("-", localtime), "\n"; alarm(10); while (1) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: alarm and flock in 5.8.0
by Zaxo (Archbishop) on Nov 16, 2002 at 23:59 UTC |