in reply to Sorting array

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