... sort keys %my_hash ...
My first thought too, but ishootperls seems to want to recover the insertion order of the keys into the hash, which, per choroba above, is available through something like Tie::IxHash.
Give a man a fish: <%-{-{-{-<
In reply to Re^2: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |