Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Fun with $SIG{__DIE__}

by Adam (Vicar)
on Jul 08, 2000 at 00:41 UTC ( #21573=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print LOG "Some message like, \$v=$v\n" if DEBUGING;
    
  2. or download this
    do this or die "couldn't do it.";
    
  3. or download this
    $SIG{__DIE__}=sub {print LOG "Script Died" and close LOG if DEBUGING};
    # is what I have, but I want:
    $SIG{__DIE__}=sub {print LOG "Script Died: $msg" and close LOG if DEBU
    +GING};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-07-30 21:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls