in reply to "Getoptions'" argument syntax
An argument to 'refresh' is mandatory.$ foo.pl --refresh
I don't think there *is* a way to indicate that an option is mandatory (ie. that 'refresh' must be provided as an option).
And since 'refresh' may not be provided, the
sets the default value for 'refresh' to 10. And it can be overriden on the command line with '--refresh'.$REFRESH = 10
|
---|