Posted on 2006-01-25 16:03:08-08 by nigelhorne
Synopsis is syntactically incorrect
I don't think your synopsis is right. This code
# from top (most recent) of stack to bottom. while (my $frame = $trace->next_frame) { print "Has args\n" if $f->hasargs; } # from bottom (least recent) of stack to top. while (my $frame = $trace->prev_frame) { print "Sub: ", $f->subroutine, "\n"; }
should read
# from top (most recent) of stack to bottom. while (my $frame = $trace->next_frame) { print "Has args\n" if $frame->hasargs; } # from bottom (least recent) of stack to top. while (my $frame = $trace->prev_frame) { print "Sub: ", $frame->subroutine, "\n"; }
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.