|Pathologically Eclectic Rubbish Lister|
Summing Up Array Elements By Groupby neversaint (Deacon)
|on Jan 21, 2009 at 07:18 UTC||Need Help??|
neversaint has asked for the wisdom of the Perl Monks concerning the following question:
I have arrays of which the sizes are always multiple of 3, e.g:
Now what I want to do is to sum the elements in consecutive group of three, returning:
Is there a way to achieve that efficiently?
neversaint and everlastingly indebted.......