in reply to Stacktrace with variables filled in?

CGI::Ex::Dump (from CGI::Ex) does something similiar with the ctrace command.

paul@paul-laptop:~/yar/server/lib$ perl -e 'use CGI::Ex::Dump qw(debug + ctrace); sub a { baz(2) } sub baz { chree(3,4) } sub chree { debug c +trace }; a()' debug: -e line 1 $VAR = [ "chree at -e line 1 (3, 4)", "baz at -e line 1 (2)", "a at -e line 1" ];
my @a=qw(random brilliant braindead); print $a[rand(@a)];

Replies are listed 'Best First'.
Re^2: Stacktrace with variables filled in?
by Rhandom (Curate) on Jul 05, 2006 at 14:38 UTC
    Spoke too soon. CGI::Ex::Dump has the same problem with the variables not showing if they are data structures themselves. All it does is give prettier output. Sorry for the false positive.

    my @a=qw(random brilliant braindead); print $a[rand(@a)];