$all_scores[$idxMax] > $all_scores[$_] or $idxMax = $_ for 1 .. $#all_scores;