From the docs for Getopt::Long
Using a colon : instead of the equals sign indicates that the option value is optional. In this case, if no suitable value is supplied, string valued options get an empty string '' assigned, while numeric options are set to 0 .GetOptions("flag:s" => \$flag);
In reply to Re: GetOptions getting a string
by poj
in thread GetOptions getting a string
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |