Quick experimentation suggests that it provides a default value for an optional parameter. Which is really quite neat, and seems to be completely undocumented.borris)cat getopt.pl #!usr/bin/perl -w use Getopt::Long; use strict; GetOptions( "refresh=i", \ (my $refresh = 10 ) ); print "refresh = $refresh\n"; borris)perl getopt.pl refresh = 10 borris)perl getopt.pl -refresh 5 refresh = 5
In reply to Re: "Getoptions'" argument syntax
by mikfire
in thread "Getoptions'" argument syntax
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |