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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Program unexpectedly terminates
by Anonymous Monk on Nov 19, 2012 at 09:20 UTC | |
by ColonelPanic (Friar) on Nov 19, 2012 at 09:56 UTC | |
by tobyink (Canon) on Nov 19, 2012 at 10:33 UTC | |
by ColonelPanic (Friar) on Nov 19, 2012 at 11:13 UTC |
In Section
Seekers of Perl Wisdom