Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Catching DIE no matter whatby kosun (Acolyte) |
on Aug 05, 2005 at 14:50 UTC ( [id://481265]=perlquestion: print w/replies, xml ) | Need Help?? |
kosun has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a CGI::Builder application that's dying in XML::Parser, and I want to catch it. so I'm doing local $SIG{__DIE__} = sub { $var++; }; Which does indeed catch it, but after it hits that sub, it still dies with the XML::Parser error. I've tried setting $SIG{__DIE__} globally with same problem :( Is there some way to catch the die regardless? I don't want to have to do an eval because of the overhead in spawning another interpreter... thank you! Kosun
Back to
Seekers of Perl Wisdom
|
|