# open TEMP filehandle "temp.html" for appending/writing. open $TEMP, ">>temp.html" or die "temp.html not created."; #cut and pasted code printf $TEMP <<"_ENDOFTEXT_"; #other stuff