How to print calling program/module inside a called API method in Perl?

Posted by Nirmal Singh Raja Reegan on Stack Overflow See other posts from Stack Overflow or by Nirmal Singh Raja Reegan
Published on 2010-04-07T04:49:37Z Indexed on 2010/04/07 8:23 UTC
Read the original article Hit count: 501

Filed under:
|

Hi,

I have written a Perl API and it is used by many programs across teams. I want to track all programs calling my API method. I want to have something like the below

debug("The calling method is ", $XXXX);

How to get $XXXX ?

Thanks, Nirmal

© Stack Overflow or respective owner

Related posts about perl

Related posts about trace