in reply to Re^2: How to Find the Script that Called it
in thread How to Find the Script that Called it

You can set an environment variable in the one parent script that you're looking for. E.g. $ENV{RUNNING_FROM_FOO}=1; in foo.pl, then in bar.pl test if ($ENV{RUNNING_FROM_FOO}) { ... }.

Update: I see the Joost already suggested an environment variable, but you seem to have missed it (as did I). So it's probably worth saying again anyway :-)

Replies are listed 'Best First'.
Re^4: How to Find the Script that Called it
by bichonfrise74 (Vicar) on Dec 18, 2008 at 01:59 UTC
    Thank you all for your suggestions.