in reply to Re: Customizing the 'die' funtion
in thread Customizing the 'die' funtion
You almost certainly want to do this instead of overriding $SIG{__DIE__}, since the latter doesn't stop exception handling, but just gives you a chance to do some stuff before die continues going about its business.local *CORE::GLOBAL::die = sub { "My version of die." }; # use it...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Customizing the 'die' funtion
by kennethk (Abbot) on Apr 26, 2010 at 22:56 UTC | |
by educated_foo (Vicar) on Apr 27, 2010 at 19:32 UTC |