I have this getopt:
GetOptions( GetOptions ("library=s" => \@libfiles);
@libfiles = split(/,/,join(',',@libfiles));
"help" => \$help,
"input=s" => \$fileordir,
"pretty-xml:4" => \$pretty
);
Is it possible for Getopt::Long::GetOptions
to detect if the same option is provided on the command line multiple times? For example, I would like the following to generate an error:
perl script.pl --input=something --input=something
Thanks