in reply to Getting croak to show both caller and callee?

This may seem obvious and also may not be what you are looking for, but, just in case, what about using Carp::confess in those cases where you want more information, and Carp::croak when you don't need the full information. At least, this is a bit more fine tuned that setting $Carp::Verbose to true.

Je suis Charlie.

Replies are listed 'Best First'.
Re^2: Getting croak to show both caller and callee?
by ikegami (Patriarch) on Apr 27, 2015 at 14:38 UTC

    You can also make croak give a stack trace from the command line.

    export PERL5OPT=-MCarp::Always script
    or
    perl -MCarp::Always script script