Site hosted by Angelfire.com: Build your free website today!
#!c:\perl\bin\
# How to write HTML in a Perl Script

print "Content-type: text/html\n\n";
print "<HTML><HEAD>\n";
print "<TITLE>CGI Test</TITLE>\n";
print "</HEAD>\n";
print "<BODY><H2>This is how to write a webpage with Perl (CGI)</H2>\n";
print "<BR>\n";

# Wrtiting a Link need to escape the quotes in Perl
# Escape the quotes by writing \" for the quotes

print "<A HREF=\"http://google.com\">Home</A>\n";
print "</BODY></HTML>";

# An easier way to print HTML to Perl Scripts:
# You still need to escape characters ($, @, %, *) except for quotes!!
#
# print <<ENDHTML;
# ....your HTML code here.....
# ENDHTML