in reply to Altering Behavior of a Script
if ($ENV{'-'} =~ 'i') { # interactive invocation } else { # non-interactive e.g. cron, invocation }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Altering Behavior of a Script
by bichonfrise74 (Vicar) on Sep 03, 2009 at 20:44 UTC | |
by ikegami (Patriarch) on Sep 03, 2009 at 20:52 UTC |