Help for this page

Select Code to Download


  1. or download this
        use Getopt::Long;
        GetOptions(
           'single=s' => \(my $single = ''),
            'multi=s' => \my @multi,
        );
    
  2. or download this
        use Getopt::Long;
        GetOptions(
           'single=s' => \(my $single = ''),
            'multi=s' => grep { @$_ = ('a','b') } \my @multi,
        );