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
Arguments in the perl command line are handled well in the MPW tool version of
MacPerl. They behave just like UNIX. (Well - I'll get an argument about MPW being not
enough like UNIX)
In any case, until MacOS neXt takes over, MPW is the way to go for testing scripts
destined for UNIX boxes.
f
Hi,
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 = $