Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Alarm not working across systems

by clintp (Curate)
on Mar 07, 2002 at 00:05 UTC ( #149891=note: print w/ replies, xml ) Need Help??


in reply to Alarm not working across systems

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.


Comment on Re: Alarm not working across systems

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://149891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2015-07-04 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls