[Chicago-talk] alternatives to Getopt::Long

Jim Thomason jthomasoniii at yahoo.com
Fri May 7 14:08:23 CDT 2004

>    --foo a b c --bar 1 2 3

You could always roll your own. 

Look, here's a fancy (and inefficient) oneliner to
stick 'em into a hash:

my %args = map {/--\w+/ ? $_ : [grep {/\S/} split /
/]} grep {length} split(/(--\w+)/, join(' ', @ARGV));


Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  

More information about the Chicago-talk mailing list