Something else is wrong then, I copied the code you have here, changed the default assignment, and it works for me.
[jason@traveller jason]$ ./test.pl config: "0" [jason@traveller jason]$ ./test.pl --config config: "1"
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Re: Re: Problem with GetOpts::Long
by jasonk
in thread Problem with GetOpts::Long
by niku
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |