Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: something weird in this hash sorting

by borisz (Canon)
on Jan 15, 2009 at 11:57 UTC ( #736523=note: print w/replies, xml ) Need Help??


in reply to something weird in this hash sorting

you must sort the keys numerical. try:
for my $ctrl_2 ( sort { $b <=> $a } keys (%final) ){ ... }
and read perldoc -f sort for more information.
Boris

Replies are listed 'Best First'.
Re^2: something weird in this hash sorting
by Sombrerero_loco (Beadle) on Jan 15, 2009 at 12:08 UTC
    Hi boris. Thanks it works. also thanks to everybody. cheers

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://736523]
help
Chatterbox?
[marinersk]: Unfortunate pairing of words: Razing and Raising. You can do both to a town or building and they mean pretty much the exact opposite of each other.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-05-29 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?