Keep It Simple, Stupid | |
PerlMonks |
Re: GetOptions getting a stringby poj (Abbot) |
on Mar 24, 2018 at 19:47 UTC ( [id://1211679]=note: print w/replies, xml ) | Need Help?? |
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); poj
In Section
Seekers of Perl Wisdom
|
|