in reply to "Getoptions'" argument syntax
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: "Getoptions'" argument syntax
by nysus (Parson) on Jun 15, 2001 at 23:42 UTC | |
by Anonymous Monk on Jun 16, 2001 at 00:29 UTC |