in reply to Customizing the 'die' funtion
die "No extra info\n";
This also works for warn and is documented in die.
You can literally redefine die (which is appropriate in other contexts) by putting an appropriate hook in %SIG, or you can shift in which package Perl considers the error to have occurred with carp and modifying the @CARP_NOT array appropriately.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Customizing the 'die' funtion
by educated_foo (Vicar) on Apr 26, 2010 at 21:48 UTC | |
by kennethk (Abbot) on Apr 26, 2010 at 22:56 UTC | |
by educated_foo (Vicar) on Apr 27, 2010 at 19:32 UTC |