in reply to something weird in this hash sorting
you must sort the keys numerical.
try:
and read perldoc -f sort for more information.for my $ctrl_2 ( sort { $b <=> $a } keys (%final) ){ ... }
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 |
In Section
Seekers of Perl Wisdom