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

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 4:53 UTC
Read the original article Hit count: 513

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