On Thursday, April 11, 2002, at 01:53 , Mike wrote:

> If a program calls a perl script as follows:  /tmp/perltest.pl abc def ghi
> jkl mno
>
> Is there a variable which would contain the arguments?

yes @ARGV - in your case you would be able to play something like

        my $count=1;
        foreach my $arg (@ARGV) {
                print "Argument $count is $arg\n"
                count++
        }

for the first round of them....

you most likely will want to

        perdoc Getopt::Long
        perdoc Getopt::Std

to go into more detail about command line argument parsing.


ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to