programming-examples/perl/Array/Adding two arrays together.pl

4 lines
74 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
@a1 = ("one", "two", "three");
@a2 = @a1;
@a3 = @a1 + @a2;
print "@a3";