$SIG{"__DIE__"} = sub { do something }
It depends on the use case and module if that's preferable to block-eval resp. catch...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Can I catch a die from someone else's module?
by LanX
in thread Can I catch a die from someone else's module?
by bartender1382
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |