|
|
| laziness, impatience, and hubris | |
| 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?? |
|
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:
Larry
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||