$output[$_/3] += $arr[$_] for 0 .. $#arr; [download]
In reply to Re^2: Summing Up Array Elements By Group by repellent in thread Summing Up Array Elements By Group by neversaint