foreach (@totalExoda){ $sum+= $clearedValue; print "$sum\n"; } #end if