I'm trying to embed function output into a print <<BLAH block, EG:
my $tnav = CONF::topnav();
my $bnav = CONF::botnav();
print <<EOPAGE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:/
+/www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Wibble</title>
</head>
<body>
$tnav
<h1 class="header">Wibble</h1>
<p>This is purely demo</p>
</body>
</html>
EOPAGE
;
Ideally, for clarity, I'd like to remove the need for the local variables, and just chuck a reference to the fuction into the flow.
So, does Perl provide me with the construct to do this? Am I being completely stupid today?
NB Before anyone gets on to me with "why aren't you using CGI.pm?"; please don't, we have our reasons for not using it for output...
--
RatArsed