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};
In reply to How to use alarm? by stephenp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |