http://qs1969.pair.com?node_id=1149370


in reply to Re^4: How to Sort a Hash According to the Keys in the Hash
in thread How to Sort a Hash According to the Keys in the Hash

Hm. I was replying to comment about using "sort keys". Somehow I understood your words so, that you didn't think that this method is acceptable. Sorry.

Replies are listed 'Best First'.
Re^6: How to Sort a Hash According to the Keys in the Hash
by AnomalousMonk (Archbishop) on Dec 04, 2015 at 17:34 UTC

    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:  <%-{-{-{-<