I\'m working in a large Perl application and would like to get stack traces every time \'die\' is called. I\'m aware of the Carp module, but I would prefer not to search/replace
What about setting a __DIE__ signal handler? Something like
__DIE__
$SIG{__DIE__} = sub { Carp::confess @_ };
at the top of your script? See perlvar %SIG for more information.