if ($ENV{'-'} =~ 'i') { # interactive invocation } else { # non-interactive e.g. cron, invocation }
In reply to Re: Altering Behavior of a Script
by Bloodnok
in thread Altering Behavior of a Script
by bichonfrise74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |