How to find the sum of all values from two different arrays in Perl?

Posted by HelloWorld on Stack Overflow See other posts from Stack Overflow or by HelloWorld
Published on 2010-03-24T21:23:45Z Indexed on 2010/03/24 21:33 UTC
Read the original article Hit count: 163

Filed under:
|

How to find the sum of all values from two different arrays in Perl?

@array1=(1,2,3);
@array2=(10,10,10);

@sumofarray1and2=?

© Stack Overflow or respective owner

Related posts about arrays

Related posts about perl