Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Capturing stack trace in evalby ikegami (Patriarch) |
on Oct 07, 2009 at 20:26 UTC ( [id://799809]=note: print w/replies, xml ) | Need Help?? |
Yes, but it wouldn't work for Perl errors such as the one the OP wants to capture, "Can't use an undefined value as a symbol reference".
It won't catch run-time errors or XS errors either. Perl and XS don't call die, a Perl-space function. They call C function croak (not the one from Carp). Therefore, it only catches user-thrown errors.
In Section
Seekers of Perl Wisdom
|
|