The first thing to realize is that whatever you do won't be reliable. If you receive a signal that can't be caught, you won't have the chance to take any action about it.
That said, $SIG{__DIE__} should work fine. Just be sure to check $^S before you do anything rash, and test your handler when it's done because I'm not really sure this does what you want.
In reply to Re^5: Demonize Module, What are your thoughts?
by kyle
in thread Demonize Module, What are your thoughts?
by halfbaked
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |