http://www.perlmonks.org?node_id=713852


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>