Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

On timing out with ALRM

by tlm (Prior)
on Jul 25, 2007 at 15:39 UTC ( #628706=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
      local $SIG{ ALRM } = sub { die 'timeout' };
    ...
        handle_timeout();
      }
    }
    
  2. or download this
    $cowbell = eval { more_cowbell() };
    # eval errors blithely ignored
    ...
    
    # in some other code, far, far away
    die 'i got a fever' unless $cowbell;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (17)
As of 2014-08-01 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (19 votes), past polls