cOreey has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
is there a way how to tell getopts to return false, when duplicit parameters appear in @ARGV?
For example running Perl script with: <code> perl myscript.pl --input="input1" --input"input2"
I need it to "scream and shout", when duplicity like this occurs. But I seem not to be able to find any information regarding to this topic.
Any help appreciated, Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getopts and duplicit params
by toolic (Bishop) on Mar 13, 2013 at 12:26 UTC | |
|
Re: getopts and duplicit params
by regexes (Hermit) on Mar 13, 2013 at 10:53 UTC | |
by Anonymous Monk on Mar 13, 2013 at 11:46 UTC | |
by Anonymous Monk on Mar 13, 2013 at 18:31 UTC | |
|
Re: getopts and duplicit params (multiple / FormValidator::Simple::Validator::SINGLE )
by Anonymous Monk on Mar 14, 2013 at 01:51 UTC |