SPUG: running script with the variables on the same line
John W. Krahn
krahnj at telus.net
Sun May 29 20:31:00 PDT 2005
Tim Maher wrote:
> On Sun, May 29, 2005 at 07:31:04PM -0700, Jay Scherrer wrote:
>>I was thinking of $argv, but is that only used for files?
> Yes; That variable provides the name of the currently open file
> when you use -n/-p to get an "implicit input-reading loop".
Perl is case sensitive so the variable you are looking for is $ARGV.
More information about the spug-list