in reply to Sorting on a split hash value
If I were doing this and I had the choice, I would come up with a better data structure. Probably something like:
That way I could easily add more fields later if I chose to (score perhaps?). It will also make dealing with the information that much easier.my %games = ( larry => { count => 11, game => 'Doubles tennis', date => '20040116204235', }, moe => { count => 9, game => 'Singles tennis', date => '20040116203549', }, curly => { count => 1, game => 'Hopscotch', date => '20040116103814', }, );
I'll leave it as an exercise for the Anonymous Monk to get at the data in this HoH.
|
|---|