From: Edward QU Date: 2012-09-04T17:19:22+09:00 Subject: how to sum element of array dear all a_array=[2,4,6,8,10] I want to sum the elements of the array: 2+4+6+8+10 how to write the script? many thanks! best regards Edward -- Posted via http://www.ruby-forum.com/.