Determining the calling package

Posted by Nachikethas on Stack Overflow See other posts from Stack Overflow or by Nachikethas
Published on 2010-03-24T09:03:24Z Indexed on 2010/03/24 9:13 UTC
Read the original article Hit count: 135

Filed under:

I got a package called 1.pm in that the constructor is calling a subroutine which is in the same package.

Now if some other classes say 2.pm is calling the constructor defined in 1.pm how can i determine if the subroutine is called from 2.pm ?

© Stack Overflow or respective owner

Related posts about perl