http://www.perlmonks.org?node_id=932671


in reply to Can i do math with the elements of an array?

Yes. What did you try so far?