in reply to Re: How do I get a post mortem stack trace?
in thread How do I get a post mortem stack trace?

Or to take this a step further, place the following at the beginning of the script....
use Carp; $SIG{__DIE__} = \&Carp::confess;
This turns any die into a confess, giving you a full stack trace. (Of course it does add two to the line numbers reported -- you could fudge this by adding these two statements to a pre-existing line).
Enjoy...

--JAS