in reply to Re: File permissions
in thread File permissions

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.

Replies are listed 'Best First'.
Re (tilly) 3: File permissions
by tilly (Archbishop) on Apr 01, 2001 at 00:52 UTC
    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...