Well, I did look deeper, and I mostly understand what's going on now, but one thing does still surprise me.

say $transcripts{$transcript_ip}{$transcript_id}; + # gives me the hash reference of the lowest (3rd deep + hash) say %{ $transcripts{$transcript_ip}{$transcript_id} }; + # gives me that entire hash (key value pairs) say %{ $transcripts{$transcript_ip}{$transcript_id} }{@transcri +pts_columns}; # gives me my desired slice of that hash (key value p +airs) say keys { %{ $transcripts{$transcript_ip}{$transcript_id} }{@transcri +pts_columns} }; # gives me my desired slice of that hash (keys only) say @{ $transcripts{$transcript_ip}{$transcript_id} }{@transcri +pts_columns}; # gives me my desired slice of that hash (values only +)

What slightly surprised me is that the 3rd line above (with the leading %) gives the key value pairs and not just the values, but that made sense when I considered that I did essentially ask it to give me a hash and of course Perl would give a list of key value pairs when I do that. What still surprises me is that the last line simply by changing the leading % to a @ gives just the values to the list. Don't get me wrong though, that's darned convenient, and I'm really glad Perl does that.

I didn't even realize that's the same thing I had done before in the first line of code I gave in my original post until I went back and considered it more. For some reason that made complete sense to me at the time... or more likely I guessed, got lucky, and didn't inspect further because I didn't have to at the time. :-)

I love it when things get difficult; after all, difficult pays the mortgage. - Dr. Keith Whites
I hate it when things get difficult, so I'll just sell my house and rent cheap instead. - perldigious

In reply to Re^2: Syntax Question Related to "join" on a Complex Data Structure by perldigious
in thread Syntax Question Related to "join" on a Complex Data Structure by perldigious

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.