As for your question above. Even though they have the same value, they should differ because it comes from different index (I1,I2).

I realize that, but given that in your description of the task indices are not mentioned, they can't be a basis for treating the two instances of TTAT differently.

A cardinal skill in programming (or any form of engineering for that matter) is knowing how to specify the task you are trying to solve. Many bugs are the result of incorrect or incomplete specification. Examples are useful to quickly convey the gist of your goal, but they are no substitute for a full specification.

How do you fully specify the task you are trying to accomplish? Apparently this is something that takes some practice, but to get in the right frame of mind you can begin by imagining that you are paying a lot of money to someone else for coding this thing, and therefore you have to make sure that you explain to him/her exactly what this thing needs to do, for otherwise you will be paying a lot of money with every round of revisions to the code's objectives.

Knowing how to spec software is a fundamental programming skill. Don't rely on the monks doing it for you, or you will never progress as a programmer.

the lowliest monk


In reply to Re^3: Element Count from Array to HoH by tlm
in thread Element Count from Array to HoH 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.