[Israel.pm] Who called me?

Yaron Golan yargolan at gmail.com
Sun Jun 15 05:15:26 PDT 2008


Hi,
Is there a way to get the path of the Perl who called a script.

For example:
I have a script which resides at C:\MyScripts\this_script.pl.

Now I can run it by:
C:\perl\bin\perl.exe C:\MyScripts\this_script.pl
or
D:\perl5.10\bin\perl.exe C:\MyScripts\this_script.pl

How can I tell which one is executing the script?

Thanks,
YG



More information about the Perl mailing list