I programmed Perl once, and i used the editor
DzSoft Perl Editor.
Here you can see some Perl w/ HTML example.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print <<"HTML";
<html>
<head>
<title>Perl w/ HTML</title>
</head>
<body>
Perl w/ HTML
</body>
</html>
HTML
Correct me if I'm wrong, it's about an year ago i last used Perl.