Welcome to the Monastery | |
PerlMonks |
Re: caller() mysteryby JavaFan (Canon) |
on Sep 26, 2008 at 09:52 UTC ( [id://713840]=note: print w/replies, xml ) | Need Help?? |
Because counting frames is 0-indexed. You do not have a third frame, so caller(2) won't return anything.
Try calling f(0) and f(1).
In Section
Seekers of Perl Wisdom
|
|