Perl Monk, Perl Meditation | |
PerlMonks |
problems sorting hashes of hashesby Anonymous Monk |
on Jun 30, 2000 at 22:06 UTC ( [id://20644]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am having problems sorting a two dimentional hash. I have checked the prerequisite help sites (the stuff here at perlmonks.org) and perldsc, but they don't seem to work for my situation.
Normally I'd chug away at it untill I got it to work, but I needed it to work yesterday ... : ) So without further ado, here is the offending code, printing unsorted: my data structure is set up as follows: $hash{author} has three fields, fname (first name), lname (last name), and count (number of occruences in a file) I would like to sort the hash by the count field.
Any help would be greatly appreciated.
Back to
Seekers of Perl Wisdom
|
|