For my liking though, this is more intuitive:
my @stack; my $depth = 0; while (my @frame = caller $depth++) { push @stack, \@frame[0,1,2]; }
In reply to Re^2: Getting size of call stack
by aufflick
in thread Getting size of call stack
by Sprad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |