@array1 = qw( a b ); @array2 = qw( c d ); @array3 = qw( e f ); foreach (@array1, @array2, @array3) { print; } # output # ------ # abcdef