stephenp has asked for the wisdom of the Perl Monks concerning the following question:
I would expect this to print out "checking" after about two seconds and then run forever, but it never calls the sub.$SIG{ALRM} = sub {print "checking;}; alarm 2; while (1) {1};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use alarm?
by psini (Deacon) on Jul 25, 2008 at 21:10 UTC | |
|
Re: How to use alarm?
by MidLifeXis (Monsignor) on Jul 25, 2008 at 21:13 UTC | |
|
Re: How to use alarm?
by toolic (Bishop) on Jul 25, 2008 at 21:21 UTC | |
by broomduster (Priest) on Jul 25, 2008 at 23:03 UTC | |
by Fletch (Bishop) on Jul 26, 2008 at 03:06 UTC | |
by friedo (Prior) on Jul 26, 2008 at 03:26 UTC | |
by blazar (Canon) on Jul 26, 2008 at 08:13 UTC | |
| |
by bart (Canon) on Jul 27, 2008 at 08:05 UTC | |
by broomduster (Priest) on Jul 26, 2008 at 09:51 UTC |