Good comments from 1nickt++. Also good replies from kcott and others.

If the OP's main goal is just to learn about complicated hash data structures, then I think there is lot's of info in this thread.

If the OP's goal is to implement some sort of DB application that will "live" and be maintained over time, I think the advice will differ significantly. One point is how add/modify/delete records easily without modifying the actual Perl code. Another consideration might be the difficulty or ease of adding new sections of parameters to existing records. Maybe add NHL for example.

Some sort of YAML or .ini file for data input is certainly a possibility.There are others.

What sort of queries do you want to do on this DB that would be useful in an application sense? I have currently no idea. Teams and Restaurants don't seem to have anything to do with each other unless there is some linkage to which ones are near which parks?

Rather than some complicated HoHoHoH structure, this sounds to me more like an SQlite DB would yield far more flexibly in querying the DB. Just a thought. The combination of a simple DB DQL query coupled with some extra PERL processing can be very powerful.


In reply to Re^2: How to define and deref hash of hash of hash by Marshall
in thread How to define and deref hash of hash of hash by dirtdog

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.