Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    GetOptionsFromArray(\@argv2, \my %opts2, "ot:s") or die;
    is_deeply \%opts2, { ot => "" };
    is_deeply \@argv2, ["arg1", "arg2"];