http://www.perlmonks.org?node_id=640483


in reply to Forcing stack trace?

Wow... not many helpful responses. I assume your program is exiting from a call to die? You can get a stack trace by overriding it, like so:
*CORE::GLOBAL::die = sub { require Carp; Carp::confess };