Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: caller() mystery

by JavaFan (Canon)
on Sep 26, 2008 at 09:52 UTC ( [id://713840]=note: print w/replies, xml ) Need Help??


in reply to caller() mystery

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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://713840]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found