[Chicago-talk] alternatives to Getopt::Long

Mike Fragassi frag at ripco.com
Fri May 7 10:32:25 CDT 2004


Getopt::Long doesn't seem to have the ability to take command-line
arguments like

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

and, say, give you @foo = qw(a b c) and @bar = (1, 2, 3).  To get that,
you have to require that the arguments look like one of these:

   --foo a,b,c --bar 1,2,3  # and split on commas later

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

Does anyone know of an alternative to Getopt::Long that can handle the
first example?

-- Mike F.



More information about the Chicago-talk mailing list