in reply to Command Line Options without "-" or "- -"
What about this, before parsing options using Getopt::Long, assuming the values will never have an ending ':' (untested):
@ARGV = map { s/^(.*):$/--$1/ if /:$/; $_ } @ARGV;
Igor 'izut' Sutton
your code, your rules.
|
|---|