the output is all the values not in order for both printings. Thanksforeach my $sorted(@sorted){ $scorehash{$sorted} = undef; } print Dumper(%scorehash); my @ranks2 = sort { $b <=> $a } keys %scorehash; print Dumper(\@ranks2); print $ranks2[0];
In reply to splitting array values
by mkurtis
in thread splitting array values
by mkurtis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |