geo has asked for the wisdom of the Perl Monks concerning the following question:
Good Morning,
What is the best way to determine if a Perl script is being run from the command line, or called from another script? I have a suite of scripts in which the program flow will be different depending on how the script was invoked.
I was unable to find a topic discussing this but if I missed, it a pointer would be greatly appreciated.
Thanks for your help
george
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I need to determine how a Perl script was invoked
by Illuminatus (Curate) on Nov 15, 2010 at 13:22 UTC | |
by geo (Acolyte) on Nov 15, 2010 at 17:17 UTC | |
|
Re: I need to determine how a Perl script was invoked
by Anonymous Monk on Nov 15, 2010 at 12:51 UTC |