in reply to how to use --xxx as a option using getopts

I'm going to reply here because you asked here.

This sounds like a job for Getopt::Long. Something very simple like:

use Getopt::Long; my %opts; GetOptions( "verify=s" => \$opts{verify}, "x" => \$opts{x}, );
See the documentation for more information; it's rather self-explanatory (and thorough).
_____________________________________________________
Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart