in reply to parsing arguments
It's well documented, and saves you from the pitfalls of trying to parse a complex command line yourself.
In particular read the section in Getopt::Long's documentation about "Options with hash values". And the "Summary of Option Specifications".
UPDATE: Since Getopt::Long prefers command line arguments to look like "--option=value", if it is deemed that using Getopt::Long is enough of an advantage to be worth using, you could consider the additional step of setting up a BEGIN{} block that preprocesses the command line arguments to make them look like options so that Getopts::Long can still conveniently put them into a hash for you.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: parsing arguments
by mifflin (Curate) on Oct 07, 2003 at 22:47 UTC | |
|
Re: Re: parsing arguments
by BUU (Prior) on Oct 07, 2003 at 22:43 UTC |