Subject: | using Carp with Contextual::Return causes "Incomplete caller override" message |
When using Contextual::Return with Carp, it displays the args as "**
Incomplete caller override detected; @DB::args were not set **".
Below are some one-liners to demonstrate the issue. The first two are
Carp and Contextual::Return working independently and the third shows
what happens when mixed.
Show quoted text
> perl -MCarp -le 'sub f { Carp::confess("Forgive me..."); }; f();'
Forgive me... at -e line 1
main::f() called at -e line 1
Show quoted text> perl -MContextual::Return -le 'sub f { print caller(); }; f();'
main-e1main::f1256
Show quoted text> perl -MContextual::Return -MCarp -le 'sub f { Carp::confess("Forgive
me..."); }; f();'
Forgive me... at -e line 1
main::f(** Incomplete caller override detected; @DB::args were
not set **) called at -e line 1