|Problems? Is your data what you think it is?|
Re^2: sort hash of array by valueby snopal (Pilgrim)
|on Oct 02, 2007 at 00:00 UTC||Need Help??|
Responding to my own post.
That's the annoying but seemingly impossible to avoid mantra of a good perl developer. Exclude them at your own risk, and only when you know why you are doing so. You really needed to find out where the code just would not work.
As previously remarked, your value assignment strategy does not do what you think. Since '=>' is just a sophisticated comma, your hash assignment is interpreted as:
As mentioned before, the quotes around clearly numeric values are unnecessary.
Next, for some reason, your example has:
Obviously, the array brackets are missing.
You should also research the usage of 'sort'. You defined a sort evaluation call, but didn't call sort to use it.