Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: better cli processingby flarg (Initiate) |
on Nov 02, 2002 at 15:52 UTC ( [id://209963]=note: print w/replies, xml ) | Need Help?? |
On a related note, the Getopt::Long node says I can specify an option like 'foo --size=24' like this:
>>> GetOptions("size i" => \$offset); <<<
How can I use this feature to specify an option that may look like either of these:
foo --size 24 --verbose --debug
or a more compact version
-vds 24
I can't quite figure it out. The documentation contains alot of examples using references, and I references are a little beyond me right now (but I'm learning!).
In Section
Seekers of Perl Wisdom
|
|