Thank you - ptoulis (Sexton) from Nov 24, 2008 at 08:28 UTC - for your quick reply to my inquiry and your most helpful suggestions.

I recall now, I have previously read about sorting dates in century/mm/dd order instead of the traditional American date structure of dd/mm/yy.

However, if you will please note: After I parse the 'incoming' date structure into its' individual components - I do not deal with either format - in any manner - in the program. You will further note that in the line:
if (($ampm eq "a") && ($hour <= 9)) {$hour = '0'.int($hour) ; }
that I prepend a zero to the single digit hour to assist in sorting.

Could you, please, expand on your comment: "You should reconsider also, the way you build up the hash: the => seems irrelevant in the outer hash."
I have tried to mimic the example from the manpage: "perldsc", which shows:

%HoH = ( flintstones => { lead => "fred", pal => "barney", }, jetsons => { lead => "george", wife => "jane", "his boy" => "elroy", }, simpsons => { lead => "homer", wife => "marge", kid => "bart", }, );

What am I missing (doing wrong)?
Again, thank you for your assistance, sometimes it's a chore trying to teach an old dog new tricks.
Thomas


In reply to Re^2: Brain muchly befuddled by nested hashes by WartHog369
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.