The fundamental thing is to not have a $SIG{__DIE__} handler at all, or at least, to not call exit in there. Also see $^S in perlvar and the discussion of it there relating to %SIG.
Basically, what you've done is bad design and the sooner you go away from a $SIG{__DIE__}, the sooner your headaches will go away.
In reply to Re^3: XML::Twig and Eval
by Corion
in thread XML::Twig and Eval
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |