Subject: | Carp::Indeed does not work for interpreter-thrown exceptions |
Even though C<Carp::Indeed> turns C<die> into C<Carp::confess()>
with programmer-called deaths, exceptions thrown during runtime
by the interpreter do not get stack traces.
Contrast
$ perl -MCarp::Indeed -e 'sub g { die }; sub f { g }; f'
at -e line 1
main::g() called at -e line 1
main::f() called at -e line 1
with
$ perl -MCarp::Indeed -e 'sub g { $a = []; return %$a }; sub f { g }; print f()'
Can't coerce array into hash at -e line 1.