in reply to how to use --xxx as a option using getopts
This sounds like a job for Getopt::Long. Something very simple like:
See the documentation for more information; it's rather self-explanatory (and thorough).use Getopt::Long; my %opts; GetOptions( "verify=s" => \$opts{verify}, "x" => \$opts{x}, );
|
|---|