|
I would like to pass two file names as parameters on command line
I am thinking about using @argv.
However, it looks very silly if I type the following on command line and use $ARGV[0],$ARGV[1],$ARGV[2] in myScript.pl
> perl myScript.pl file1 file2 file3
Is there any complicated way to do it? Thank you!!
|
|
|
why is it silly?
usually u should strive for simplicity when solving a problem,
not complexity.
<Added>
off course, u should, for readability's sake,
change the name argv into something more descriptive, like filenames.
my @filenames = @argv;
|
|
|
Thank you very much hermanningjaldsson!
|
|
|
|
|
|
|
// |