Mega Code Archive

 
Categories / Perl / Array
 

Adding two arrays together

@a1 = ("one", "two", "three"); @a2 = @a1; @a3 = @a1 + @a2; print "@a3";