Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Answer: how do i sort hash by key numerically

by Tyke (Pilgrim)
on Mar 07, 2001 at 16:35 UTC ( #62733=note: print w/ replies, xml ) Need Help??


in reply to Answer: how do i sort hash by key numerically
in thread hashes

Are you sure that this doesn't sort typographically rather than numerically. I think the {$a<=>$b} block cited by arhuman is necessary here.

-- I knock my pate and fancy wit will come Knock as I please, there's no one at home a pontiff paraphrased


Comment on Re: Answer: how do i sort hash by key numerically
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2014-12-19 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (92 votes), past polls