I was studying someone else's code and came across this line:
GetOptions( "refresh=i" => \ (my $REFRESH = 10), ...other option variables... );
I'm confused by the syntax of this line. It is nowhere to be found in the module documentation. According to the module, the "=" sign in "refresh=i" makes the option mandatory in the command line. So if that's the case, why does the argument above appear to be assigning a value to "$REFRESH"?
Respectfully Yours,
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot";
$nysus = $PM . $MCF;
In reply to "Getoptions'" argument syntax by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |