My test runs give:use Getopt::Long; my $opt = 0; GetOptions ("opt:100" => \$opt ); print "Opt is:\t$opt\n";
HTH - j>opt.pl --opt Opt is: 100 >opt.pl --opt 7 Opt is: 7 >opt.pl Opt is: 0
In reply to Re: Getopt::Long and default number
by jimbojones
in thread Getopt::Long and default number
by mrborisguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |