http://www.perlmonks.org?node_id=624796


in reply to Re^2: hash sorting/alphabetization issue : country postal codes
in thread hash sorting/alphabetization issue : country postal codes

Considering that in the end you would have sorted VALUES not the keys, above array variable name is rather misleading.

I disagree - @sorted_keys contains SORTED KEYS, sorted by the values.
But feel free to call it @keys_sorted_by_value if you feel like it.

Replies are listed 'Best First'.
Re^4: hash sorting/alphabetization issue : country postal codes
by parv (Parson) on Jul 04, 2007 at 04:43 UTC

    Oh! Right you were, and are. Indeed the array name is reasonable and the array does contain sorted keys not the values. I apologise for distrubing the peace.

    I will stand in a corner now for a while ...