as the first thing in your handler, or else the sub will recurse the first time someone presses ctrl-C while in this sub.$SIG{INT} = 'IGNORE';
And, Like you remarked yourself, you still have to actually exit or die at the of the sub, or it'll just resume where it left off, afterwards.
In reply to Re^2: How do I dump data to file on hard exit?
by bart
in thread How do I dump data to file on hard exit?
by starbuck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |