![]() |
|
XP is just a number | |
PerlMonks |
Re: Capturing stack trace in evalby Joost (Canon) |
on Oct 07, 2009 at 19:32 UTC ( #799793=note: print w/replies, xml ) | Need Help?? |
You can override CORE::GLOBAL::die to throw an exception object (see the die documentation) which captures the call stack at that moment, instead of just a string.
Which is the only reliable way I've found to do it. edit: don't try to use the $SIG{__DIE__} for this. It won't work.
In Section
Seekers of Perl Wisdom
|
|