my @masterArray = (@array1, @array2, @array3); foreach (@masterArray){ print $_; } $numElements = @masterArray print $numElements;