Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Syntactic Confectionery Delight
 
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
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 scrutinizing the Monastery: (17)
As of 2014-04-18 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls