F
Francois Massion
I have a script with the following syntax:
extract.pl [file-to-extract] [results file] [stopword-file(s)
= 1..n]
I would like to get the value of the stopword-file(s). There may be
one or more of such file.
The following code doesn't deliver the right values:
my $source_file = shift @ARGV;
my $target_file = $ARGV[0]; # Value is OK
# one or more than one stopword file --> result NOK
my @stopwords_files = ();
foreach my $stopword_file (@ARGV) {
push @stopwords_files, $stopword_file;
}
Any suggestions?
extract.pl [file-to-extract] [results file] [stopword-file(s)
= 1..n]
I would like to get the value of the stopword-file(s). There may be
one or more of such file.
The following code doesn't deliver the right values:
my $source_file = shift @ARGV;
my $target_file = $ARGV[0]; # Value is OK
# one or more than one stopword file --> result NOK
my @stopwords_files = ();
foreach my $stopword_file (@ARGV) {
push @stopwords_files, $stopword_file;
}
Any suggestions?