I'm short on time but I know this question has been asked before. The sub looked something like:
sub stack_depth() { my $depth = 1; $depth++ while defined caller($depth); --$depth; }
I think that's right.
In reply to Re: caller counter
by !1
in thread caller counter
by wolis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |