Very Convenient for text output is syntax |
print FILEHANDLE <<EOF; |
<html> |
<title>$title</title> |
</head> |
<body bgcolor="$bgcolor" > |
<h1>$title</h1> |
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<title>$title</title>\n</head>\n"; # etc. |