Brute force and ignorance suggests:
But note that GetOptions allows you to abbreviate the commands as long as their uniquely identifiable. So you can pass --f instead of --file, and therefore don't necessarily need getopts, provided you're willing to live with the double hyphen.@ARGV2=@ARGV; GetOptions(...); @ARGV=@ARGV2; getopts(...);
PS. I still don't understand the lest for the size of %args as an alternative to testing $help. If you supply 2 single hyphen parameters (possibly including -h) then you don't get the help message?
In reply to Re: Re: Re: getopt?
by tommyw
in thread getopt?
by azool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |