my $REFRESH = 10; GetOptions( "refresh=i" => \$REFRESH, ...... );
You can think of the my as both representing and declaring the lexical variable(s) in question.
update: The reason it's a =i and not a :i is that the =i makes the number mandatory after the option, but not the option.
In reply to Re: "Getoptions'" argument syntax
by wog
in thread "Getoptions'" argument syntax
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |