Actually the script name is in $0. @ARGV are all other parameters passed to
perl. In testing shell scripts I often use
print "$0 @ARG\n"
so that I have a command line ready to run for the next test (when working
in those branches of OS land).
Thanks,
Snork
> From: [EMAIL PROTECTED]
> Date: 1 May 2001 00:18:03 -0000
> To: [EMAIL PROTECTED]
> Subject: macperl Digest 1 May 2001 00:18:03 -0000 Issue 49
>
> This must be an FAQ, but being at an early stage, I don't even know where
> FAQ's are located.
>
> I want to test a Perl Script on a Mac, and then run it on a remote unix box.
> It shall be called with arguments on the command line.
>
> The script starts with:
>
> #!/usr/local/bin/perl -w test1.pl
> $in = $ARGV[0]; # expecting test1.pl
> print $in, "\n";
>
> result: # Use of uninitialized value.
>
> What should I change ? Thanks. (Macperl 5.13r2)
>