$/ = ''; # change output separator to nothing instead of newline print @array, "\n";