Hi Edd,
If you look at 'perldoc perlrun' it gives you a bucket load of info on
how to run perl scripts from the command line.
If you look at 'perldoc perlvar' it gives out another bucketload of
info on the internal variables used inside perl - including $0 which
holds the name of the script being run and @ARGV which is an array
containing the arguments (parameters) specified on the command line.
Also, there are modules (such as getopt) for parsing the arguments for
you. Try 'perldoc GetOpt::Long' and 'perldoc GetOpt::Std' .
Gary
On Wednesday 13 June 2001 11:10 am, Edd Dawson wrote:
> Hi,
>
> I wish to write a perl script that i can call from the command line
> and pass parameters to it in the call when running under unix, i.e
>
> perl perlscript parameter1 parameter2
>
> I don't seem to be able to find any info anywhere on how to do this
> so if anyone could point me in the right direction i would be most
> grateful.
>
> Thanks very much for your time
> Edd Dawson
--
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000