Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: hash sorting/alphabetization issue : country postal codes

by grep (Monsignor)
on Jul 03, 2007 at 21:36 UTC ( #624796=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^3: hash sorting/alphabetization issue : country postal codes
Select or Download Code
Replies are listed 'Best First'.
Re^4: hash sorting/alphabetization issue : country postal codes
by parv (Priest) 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 ...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://624796]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2015-07-28 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls