RE: Calling a Perl script with parameters

2001-06-13 Thread mark crowe (JIC)
Hi Edd >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 A few things you might like to try: 1) Start your script with #!/usr/bin/perl (or wherever perl lives on your

Re: Calling a Perl script with parameters

2001-06-13 Thread victor
The command line parameters are stored in the @ARGV array. Tor. 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

Re: Calling a Perl script with parameters

2001-06-13 Thread Gary Stainburn
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 b

Calling a Perl script with parameters

2001-06-13 Thread Edd Dawson
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 directi