Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Getopt::Std;
    ...
    
    my %opts = parse_cmd("someprg -x foo -y bar -z baz -ab");
    print Dumper(\%opts);
    
  2. or download this
    $VAR1 = {
              'x' => 'foo',
    ...
              'z' => 'baz',
              'b' => 1
            };