Getopt::Long::Configure(\"no_pass_through\");
my %opts = ();
GetOptions(\\%opts,
\'opt1=s\',
\'opt2=s\',
\'opt3\'
);
>
Options are denoted with a leading dash (hyphen); arguments are not.
You might find Getopt::Long Argument-callback useful:
A special option 'name' <> can be used to designate a subroutine to handle non-option arguments. When GetOptions() encounters an argument that does not look like an option, it will immediately call this subroutine and passes it one parameter: the argument name.