use warnings; use strict; use Getopt::Long; my $arg = -1; GetOptions('arg:i' => \$arg) or die; print "$arg\n";
In reply to Re: Trickery with Getopt::Long (flag option, with optional integer arg)
by toolic
in thread Trickery with Getopt::Long (flag option, with optional integer arg)
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |