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.
In reply to Re: Customizing the 'die' funtion
by kennethk
in thread Customizing the 'die' funtion
by paragkalra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |