I'm pretty sure there are some better way to perform this task, but can't figure out how right now.my $opt = "0"; $result = GetOptions ("opt:s" => \$opt,); $opt = 100 if ($opt eq "");
surrender to perl. your code, your rules.
In reply to Re: Getopt::Long and default number
by izut
in thread Getopt::Long and default number
by mrborisguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |