If you just want to pass a limited number of parameters, in a specified
order, where they will always be there, it's easiest.  They are then stored
in the array @ARGV.

script.pl filename.txt

has the string filename.txt in $ARGV[0]

If you want to use flags and optional parameters and such then review the
Getopt documentation with:
perldoc Getopt::std
perldoc Getopt::long

-----Original Message-----
From: Josef E. Galea [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: Parameters


How can I pass parameters (eg: a file name) to a Perl script

Josef


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

Reply via email to