in reply to Re^3: GetOpt::Long usage style
in thread GetOpt::Long usage style

use Getopt::Long; GetOptions( 'single=s' => \(my $single = ''), 'multi=s' => \my @multi, );

If you want to provide a non-empty default value, one way is:

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

- tye