Skip Menu |

This queue is for tickets about the Carp-Indeed CPAN distribution.

Report information
The Basics
Id: 14971
Status: resolved
Priority: 0/
Queue: Carp-Indeed

People
Owner: Nobody in particular
Requestors: a.r.ferreira [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: 0.03



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.
Date: Mon, 10 Oct 2005 14:27:56 -0300
From: Adriano Ferreira <a.r.ferreira [...] gmail.com>
To: bug-Carp-Indeed [...] rt.cpan.org
Subject: [cpan #14971] Carp::Indeed does not work for interpreter-thrown exceptions
RT-Send-Cc:
On 10/7/05, Carp-Indeed <bug-Carp-Indeed@rt.cpan.org> wrote: Show quoted text
> 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.
This is fixed now with release 0.03. $ perl -MCarp::Indeed -e "sub g { $a = []; return %$a }; sub f { g }; print f()" Can't coerce array into hash at -e line 1 main::g() called at -e line 1 main::f() called at -e line 1