Very convenient for text output is "here" document: |
print FILEHANDLE <<EOF; |
<html> |
<head><title>$title</title></head> |
<body bgcolor="$bgcolor"> |
<h1>$title</h1> |
</body></html> |
EOF |
Here EOF is an arbitary string to denote end of data |
Note that variables are interpolated in this syntax which is equivalent to a "" form which is less clear! |
print FILEHANDLE "<html>\n<head><title>$title</title></head>\n"; # etc. |