Welcome to the Monastery | |
PerlMonks |
Re: I don't understand why keys %hash does this ...by FoxtrotUniform (Prior) |
on Oct 05, 2004 at 06:04 UTC ( [id://396489]=note: print w/replies, xml ) | Need Help?? |
Hashes are not sorted. They're designed for direct data lookup, not ordering. If order is important to you, use an array (or sort the keys before you use them). --
In Section
Seekers of Perl Wisdom
|
|