$array[0] . "|" . $array2[0] #### my $newarray[0] = [$array[0], $array2[0]];