Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^6: How to Sort a Hash According to the Keys in the Hashby AnomalousMonk (Archbishop) |
on Dec 04, 2015 at 17:34 UTC ( [id://1149402]=note: print w/replies, xml ) | Need Help?? |
If ishootperls wants hash keys returned in the order in which the key/value pairs were inserted into the hash, then sort keys %hash is not acceptable: it will return a list of the keys in lexically sorted order. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|