There's more than one way to do things | |
PerlMonks |
Re: Alarm not working across systemsby clintp (Curate) |
on Mar 07, 2002 at 00:05 UTC ( [id://149891]=note: print w/replies, xml ) | Need Help?? |
Yuck. The rule with signal handling (at least for now) is: do as little as possible in the handler and get out. The best thing to do is to change the value of an already initialized package variable -- not a my'd variable -- from 0 to 1 to indicate that the alarm did indeed go off and was caught. After the eval {} block check the value of the flag and proceed appropriately.
In Section
Seekers of Perl Wisdom
|
|