in reply to (Complex)Data Manipulation
The AOHOH would be:
Needless to say, the code above is untested..my @db; $db[$monthNumber]->{ProductName}{RegionName} = $Quantity; # Loop through Month.. for (0..11){ #Cycle through Months, assuming zero-based next unless my %prod = %{$db[$_]}; # Any data there ? print "Some MONTH $_ header here\n"; foreach (sort keys %prod){ my %region = %{$prod{$_}}; # $region{RegionName} now has the qty to be printed # Hopefully, you get the idea now... } }
..."I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know, and that's a good thing. I think it's a very constructive exchange," --Donald Rumsfeld
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (Complex)Data Manipulation
by poqui (Deacon) on Feb 28, 2005 at 18:53 UTC | |
|
Re^2: (Complex)Data Manipulation
by rupesh (Hermit) on Feb 28, 2005 at 10:21 UTC |