Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How do I dump data to file on hard exit?

by larryl (Scribe)
on Mar 31, 2006 at 22:29 UTC ( #540558=note: print w/ replies, xml ) Need Help??


in reply to How do I dump data to file on hard exit?

Just wondering: Why do you currently open/print/close the file for each iteration, instead of leaving it open?

You could put the close in an END block, and then use sigtrap to make sure your END block gets run:

use sigtrap qw(die normal-signals error-signals);

Larry


Comment on Re: How do I dump data to file on hard exit?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-26 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls