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 reply to Re^6: How to Sort a Hash According to the Keys in the Hash
by AnomalousMonk
in thread How to Sort a Hash According to the Keys in the Hash
by ishootperls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |