- or download this
# it interpolates variables
print OUT <<"END_OF_PRINT";
...
many lines
many lines
END_OF_PRINT
- or download this
print OUT
"string1\n",
"string2\n",
"string3\n",
;
- or download this
open OUT, '>', $file or die "$file: open for writing failed: $!\n";
- or download this
print OUT "text bla bla\n" or die "$file: print failed: $!\n";
close OUT or die "$file: close failed: $!\n";