Thanks to everyone who has chimed in to help me out with this issue.

The nub of the issue, I gather, is that it is not possible to parse in an 'hash of arrays' using Getopt::Long directly.

From the replies, I believe there are two possible solutions:
1. Use a subroutine as the target of the command line option and do the parsing within that (as demonstrated by almut in his code example)
2. Use a string array as the target of the command line option and do further post processing

I dwelt upon this a bit, and with the helpful advice from JavaFan, I decided to use Getopt::Long with the s% specifier, such that the value parsed in from the options was a string (4 numbers separated by commas, within double quotes). Simple post processing was then applied and the values successfully placed into arrays for future use within the program.

Once again, Thanks to everyone who spared their time and efforts to help me out.

In reply to Re: Processing Complicated Command Line Options using Getopt by ganeshts
in thread Processing Complicated Command Line Options using Getopt by ganeshts

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.