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.plCarp::Indeed was the subject of my first use.perl entry, back in August 2005.