Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2016-12-03 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (55 votes). Check out past polls.