http://qs321.pair.com?node_id=736523


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