On Thu, 28 Jun 2001, Scott Taylor wrote: > How can I pass parameters from *nix command line to a Perl script? > Like $1 in shell scripting. > > #!/usr/bin/perl -w > > $myfile = $1; This will: my $file = $ARGV[0]; @ARGV contains all of the command-line parameters. -- Brett http://www.chapelperilous.net/btfwk/ ------------------------------------------------------------------------ There's no such thing as a free lunch. -- Milton Friendman
- passing parameters to Perl script Scott Taylor
- Re: passing parameters to Perl script Jeff 'japhy' Pinyan
- Brett W. McCoy