# Sum of all elements in array: $sum=0; $sum=eval join '+',@array;