programming-examples/perl/Array/Put one array into another array as an element.pl
2019-11-15 12:59:38 +01:00

9 lines
126 B
Perl

#!/usr/bin/perl -w
use strict;
my @array1 = (1, 2, 3);
my @array2;
@array2 = (@array1, 4, 5, 6);
print "@array2\n";