Actually the documentation says that arguments which are not specified on the command line are ignored, so if you want it to have a default you need to set that default yourself before calling GetOptions. Simply replacing my $config = (); with my $config = 0; will make it work the way you want.
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Problem with GetOpts::Long
by jasonk
in thread Problem with GetOpts::Long
by niku
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |