Hi again dirtdog,

Great advice above from kcott about doing some reading, but you must be feeling frustrated that the advice has come full circle and now you are being told to use arrays instead of hashes! This is because you are describing your sub-tasks and getting advice on each, when what you may really need is advice on how to tackle your overall task. This is sometimes called an XY Problem, as in, your real problem is X but you are asking about Y because you've assumed that's the right approach.

So, maybe you would like to explain a bit about your overall goal: it may elicit different and more applicable advice. For example, now that I see that you have a configuration section for restaurants as well as sports teams, my advice may have been different: I would have probably suggested using YAML, or an .ini file or some other format that would allow you to maintain your data in discrete sections easily outside your program code.


The way forward always starts with a minimal test.

In reply to Re: How to define and deref hash of hash of hash by 1nickt
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.