Thanks for the additional information. I didn't understand that you were trying to trap explicit calls to exit(). That makes sense, then.
Playing around more with the BEGIN block, I found that an exit() statement within another package was only overridden if the BEGIN block came before the package definition. Do you have this block before you include all of your modules?
Also, would Test::Trap be helpful?
In reply to Re^3: Program unexpectedly terminates
by ColonelPanic
in thread Program unexpectedly terminates
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |