Have you ever used Carp::Indeed? That was a module to be used in command line so that every die/warn/carp/croak dumped stack traces. The output is a mess (with the help of Carp::longmess) but it may help sometimes.
This module was given another name, after a suggestion by nothingmuch on CPAN ratings. This is now Carp::Always and you use like this:
$ perl -MCarp::Always script.pl
Carp::Indeed was the subject of my first use.perl entry, back in August 2005. http://use.perl.org/~ferreira/journal/26116