One issue I can see is that in your problem foreach statement, you use a constant 'HourSignIn' to access your nested hash structure. However, Data::Dumper is indicating that there's no such hash key, but there are hash keys such as 'HourSignIn13', 'HourSignIn12', 'HourSignIn10', etc.

Hey - what's going on - there are weird characters in there between the 'In' and the digits! What's with the funny stuff?!

Ah - that's what the post about character \034 (0x1C) was on about... I think I've just caught up with the conversation here!

So, to re-address the problems you're seeing, avoid using a => in a hash key, ie

$ClubTotal{ 'DayOfMonth' => $date }...
because Perl does give that some meaning, but it's almost certainly not the meaning you want! Instead I think you need:
$ClubTotal{'DayOfMonth'}{$date}...
This will allow you to iterate over the items in the nested hash:
foreach my $date (%$ClubTotal{'DayOfMonth'}) { ... }
Hope that points you in a useful direction.

Welcome to Perl :-)

--
.sig : File not found.


In reply to Re: Brain muchly befuddled by nested hashes by wol
in thread Brain muchly befuddled by nested hashes by WartHog369

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.