in reply to DIE handling ... carp!
Try using eval{} around the code that may die. You can even wrap your entire program in an eval if need be.
I use this under mod perl to trap any 500 errors that may occur alerting the relevant people that something is wrong, as well as other eval's around code that may die, but if it does, I can deal with the error and continue.
|
|---|