Just to make sure, %hoa2 is just another example? or is there a relationship between %hoa1 and %hoa2?

And to make sure aswell: you use elem[1] to refer to index 0? as in elem[1] = $array[0]?

Re-reading it helped a bit, but not quite as much as I hoped... this in particular confuses me:

Point 5: 'check if elem[1]-key1 = elem[2]-key2 ..etc until elem[last]-key2.'
Point 6: 'For checking elem[2]-key1 ..elem[last]-key2'

Point 5 says elem[1]-key1, point 6 says elem[2]-key1, is this correct? and what do you mean by ..etc, there are too many possibilities to continue comparing... (so please add another one)

And, any particular reason why you are sorting the elements in $HoA1{key1}? or is this done only to be able to compare it easily?

(This post has been updated several times, since I misread it first)


In reply to Re: Aligning Arrays Problem by Animator
in thread Aligning Arrays Problem by monkfan

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.