This code does not work..
alarm 2; $SIG{ALRM} = \&Finish; while (1==1){}; sub Finish { print "Timeout reached"; }
BUT... This code works... and after 2 seconds, the program dies...
alarm 2; $SIG{ALRM} = \&Finish; while (1==1){}; sub Finish { die; }
So something happens with print...
In reply to Re: Print inside SIGNALS
by pedrete
in thread Print inside SIGNALS
by pedrete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |