Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: caller() mystery

by rovf (Priest)
on Sep 26, 2008 at 10:48 UTC ( #713852=note: print w/replies, xml ) Need Help??


in reply to Re: caller() mystery
in thread caller() mystery

I finally understand! (caller(0))[1,2] give me filename and line of the place where I was called from; but to see from what other subroutine I was called, I need to access (caller(1))[3]. Thanks a lot for clarification!

-- 
Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2020-05-27 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (153 votes). Check out past polls.

    Notices?