in reply to Re: (Continuation ....)Dynamic option
in thread (Continuation ....)Dynamic option
You also appear to have multi-character options with only a single hyphen, -input instead of --input for example, which breaks the standard.
Getopt::Long supports single hyphen just fine for long options ...
# x.pl # perl 5.8.8, Getopt::Long 2.35 use Data::Dumper; use Getopt::Long; my ( $ink , $int ); GetOptions( 'ink' => \$ink , 'int' => \$int ); print Dumper( $ink , $int );
# perl x.pl -ink $VAR1 = 1; $VAR2 = undef; # perl x.pl -ink -int $VAR1 = 1; $VAR2 = 1;
|
|---|