I know there is a way to achieve the shown data structure because I did it once before with a stock file.

Perhaps How can I visualize my complex data structure? will help you with your data structures; it's what I use to help me with mine.

Unfortunately, I can't figure it out this time and I can't find the code.

Oh, I really do recommend some form or fashion of a Version Control System. I am constantly looking back at things (even very broken things) to find out how I accomplished a particular task, or how not to try to solve a given problem. Recently, I've even begun putting various notes (usually OpenOffice docs) in because, in my case, TortoiseSVN makes it so very easy to keep things in synch between my main work machine and the netbook I carry whenever I leave my home office.

HTH,

planetscape

In reply to Re^3: hoh or hoa data structure by planetscape
in thread hoh or hoa data structure by rocky13

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.