I have a master Perl script that will run a number of slave Perl scripts, but while debugging, I may be running some of the slave scripts from the console.
Is there any way a Perl script can tell if it was run from within another script through the system() command (or using backtick quotes) instead of being run from the command line (or vice versa)?
In reply to How Was My Script Run? by HalNineThousand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |