For Example :
use Getopt::Long;
%file ;
GetOptions('file=s%' =>
sub { push(@{$file{$_[1]}}, $_[2]) });
use Data::Dumper ;
print Dumper %file ;
print @{$file{filename}} ;
my @file_array = @{$file_ref};
print "==\n @file_array == ";
I can execute and it working :
perl multipls.pl --file filename=a.txt --file filename=b.txt filename=c.txt
I am looking for
perl multipls.pl --file filename=a.txt filename=b.txt filename=c.txt
How to acheive this ?