wolis has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way of finding out how deep the stack is so I can loop through them and show the entire call stack?
perlfunc tells me:
but no hint if $i can be read from somewhere... I assume not otherwise it would say.($package, $filename, $line, $subroutine, $hasargs, $wantarray, $evaltext, $is_require) = caller($i);
Also the fact that: "Be aware that the optimizer might have optimized call frames away before caller()" may make this an impossible ask anyhow.
___ /\__\ "What is the world coming to?" \/__/ www.wolispace.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: caller counter
by blokhead (Monsignor) on Dec 04, 2003 at 01:15 UTC | |
by wolis (Scribe) on Dec 04, 2003 at 02:31 UTC | |
|
Re: caller counter
by mpeppler (Vicar) on Dec 04, 2003 at 01:17 UTC | |
|
Re: caller counter
by !1 (Hermit) on Dec 04, 2003 at 01:19 UTC | |
by Abigail-II (Bishop) on Dec 04, 2003 at 10:17 UTC | |
by !1 (Hermit) on Dec 04, 2003 at 19:15 UTC | |
|
Re: caller counter
by hardburn (Abbot) on Dec 04, 2003 at 14:45 UTC |