- or download this
print "<html>
<body>
...
</body>
</html>
";
- or download this
print "<h1 align=\"right\">Hello World</h1>";
- or download this
print '<h1 align="right">Hello World</h1>';
- or download this
print '<html>
<body>
...
</body>
</html>
';
- or download this
my $string = 'Hello World';
print '<h1 align="right">' . $string . '</h1>' . "\n";
- or download this
my $string = 'Hello World';
print "<h1 align=\"right\">$string</h1>\n";
- or download this
print qq(<h1 align="right">$string</h1>\n);
- or download this
print qq(<h1 align="right">$string</h1>\n);
print qq{<h1 align="right">$string</h1>\n};
...
# have to escape the delimiter:
print qq/<h1 align="right">$string<\/h1>\n/;
- or download this
my $string = 'Hello World';
print <<HTML;
...
</body>
</html>
HTML