![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re^5: Sorting integer value hash keysby ikegami (Patriarch) |
on Dec 25, 2009 at 20:01 UTC ( #814372=note: print w/replies, xml ) | Need Help?? |
Oops, right
That wouldn't demo how to sort 10 after 9 rather than before 2.
The OP suspected that hashes keys are always strings and that stringification of the keys was the cause of his problem. Hash keys are always strings (except for magical hashes), but that's not the cause of his problem. Perl treats the number zero and the string zero identically (except for its bitwise operators). (I'm sure you know that. It's for the OP's benefit.)
In Section
Seekers of Perl Wisdom
|
|