http://www.perlmonks.org?node_id=1004491


in reply to Re^2: Program unexpectedly terminates
in thread Program unexpectedly terminates

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?



When's the last time you used duct tape on a duct? --Larry Wall