![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Simple Hash Questionby BlenderHead (Novice) |
on Nov 18, 2009 at 21:47 UTC ( [id://808035]=perlquestion: print w/replies, xml ) | Need Help?? |
BlenderHead has asked for the wisdom of the Perl Monks concerning the following question: Hello World: I have the following code written to generate a hash:
Now, what I want to do is sort the hash by values and print it out, but my print loop isnt working right. I can get the values out okay, but the keys are not working to print. Here's what I have.
As you can see - it wont print the key name. It'll only print the sorted values. Where it says "MIRACLE HAPPENS" is where I need it to print the key name. Can anyone show me how to do that please? Thanks! BH
Back to
Seekers of Perl Wisdom
|
|