Here, @output = sort {$b->{SCORE} <=> $a->{SCORE}} @output; Each element of @output is a reference to a hash, and it can be dereferenced to get its data. Placing $b on the left of the comparison makes the sort descending.
After Compline,
Zaxo
In reply to Re: Sorting array
by Zaxo
in thread Sorting array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |