http://www.perlmonks.org?node_id=873579


in reply to Re^2: Parsing command line options without knowing what they are
in thread Parsing command line options without knowing what they are

maybe Getopt::Regex?, and use a catch all regex with a sub to process each argument, e.g. store in hash or array.
the hardest line to type correctly is: stty erase ^H