Help for this page

Select Code to Download


  1. or download this
    use Getopt::Long;
    GetOptions(
        'thing=s' => \(my $thing = ''),
        'other=s' => \(my $other = ''),
        'flag'    => \(my $flag = 0),
    ) or die 'options'; # usually scripts are for my own use
    
  2. or download this
    use Getopt::Long;
    GetOptions( 'array=s@' => \(my @array) ) or die 'options';