Got it. Yeah, I'm running it from the command line: 'perl filename'
I take it this also means that if I call this script using Perl's 'require' command, the script will work in that situation, too. Great. | [reply] |
For running an external script it is generally better to use
do.
But better still would be to wrap what the script does in
some well-named functions, require the script, and then
call the functions as needed. See also package and
Exporter for standard ways of doing that and having the
functions in the script not unexpectedly conflicting with
your own functions...
| [reply] |