Offtopic, but:
You also should check out "HTML Code Convertor"
http://www.filebuzz.com/fileinfo/6979/Html_Code_Convert.html. This is a freeware package that will take html code in and output perl, php and others. This will mean that you will have login.pl->main.html (or login.cgi->main.cgi).
Just a thought... :-)