Creating an HTML Program with Perl
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
print "<html>";
print "<body>\n";
print "<h2>Hello, world! </h2>\n";
print "<u>This Sentence is underlined </u>\n";
print "</body></html>\n";
Copy the above and save it in your cgi-bin as perltest.pl. You can then click on it to run it.