> On Thursday, May 2, 2002, at 12:32 , Josef E. Galea wrote: > > > How can I pass parameters (eg: a file name) to a Perl script
So, we've covered the nice, general, modular way to do it, but no one so far has mentioned the quick and dirty way. If you want to specify a file name for purposes of reading from that file, you don't need to even look at @ARGV. The file(s) specified on the command line will be become the default filehandle for the <> operator, so just doing something like: while (<>) { } Will read from whatever file(s) you specified on the command line. --Adam -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]