in reply to Brain muchly befuddled by nested hashes
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
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:$ClubTotal{'DayOfMonth'}{$date}...
Hope that points you in a useful direction.foreach my $date (%$ClubTotal{'DayOfMonth'}) { ... }
Welcome to Perl :-)
--
.sig : File not found.
|
|---|