Gohaku wrote:
1.) What's up with the semicolon at the end of the first
delimiter? I find that confusing.
If you prefer, you can put the semicolon after the terminator in Perl
as well, as long as you don't put it at the same line as the
terminating string. By doing so, it's easier to preserve indenting:
my $html ="<html>\n";
$html .= <<HTML
<head>
<title>heredoc demo</title>
</head>
HTML
;
print $html;
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>