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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Catching DIE no matter what
by gellyfish (Monsignor) on Aug 05, 2005 at 15:00 UTC | |
by jdhedden (Deacon) on Aug 05, 2005 at 16:27 UTC | |
Re: Catching DIE no matter what
by Joost (Canon) on Aug 05, 2005 at 15:06 UTC | |
Re: Catching DIE no matter what
by broquaint (Abbot) on Aug 05, 2005 at 16:43 UTC | |
Re: Catching DIE no matter what
by halley (Prior) on Aug 05, 2005 at 16:04 UTC |
Back to
Seekers of Perl Wisdom