Hi Monks,
How do I find the name of the script which called my current script, in Perl? Surely Perl knows this, since it may need to return there when the called script finishes.
For example:
script1.pl or script2.pl calls script3.pl. From within script3.pl, I want to know which one called it, without having to pass a parameter (or whatever) from script1.pl & script2.pl to tell script3.pl who called it.
The call could be via a 'do' or 'system' or `` or 'exec'. If your answer depends on which method, pls specify.
Thanks.
In reply to Find name of calling script? by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |