in reply to Problem with GetOpts::Long
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! |
|---|
|
|---|