Help for this page

Select Code to Download


  1. or download this
    my %opts;
    @opts{@switches} = ([]) x @switches;
    
  2. or download this
    my %opts;
    @opts{@switches} = ();
    
  3. or download this
    my $curswitch;
    for (@values) {
        exists $opts{$_} ?
    ...
        defined $curswitch or die "Not a switch: $_\n";
        push @$curswitch, $_;
    }