in reply to cgi script for html pages

new to cgi? check out ovid's Web Programming with Perl. also useful could be my own Survey of Surveys on HTML Templating systems, if you want to make your life easier by using a web framework.