I tried to divert the output of print <<EOF to a file.txt, but pern
warns of uninitialized value.
The filehandle below succeeded - so what is not initialized?
-------------------------------------------------------------------
open (OUT, ">$dirhandle\$file") || die "Can't create the html template:
$!";
# What may be wrong on the next line? Error warning: Use of
uninitialized value ..
print OUT <<EOF;
<html><head><title>$title</title></head>
<body></body>
</html>
EOF
Close OUT;
------------------------------------------------------------------------
--------------------