The OPs problem is just buffering. Either
or$| = 1; $SIG{ALRM} = sub {print "checking"};
fixes his problem.$SIG{ALRM} = sub {print "checking\n"};
In reply to Re^2: How to use alarm?
by broomduster
in thread How to use alarm?
by stephenp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |