in reply to Not getting clean HTML using print

Within a double quoted string, you must escape double quotes("). Also, if you aren't using variables, or special characters(\n,\t,etc.) that need interpolation, you should probably use single quotes('). It is slightly more efficient.

Additionally, if you are printing out a large chunk of HTML, you can use a multiline print instead of a bunch of print statements, like this
print <<_MARKER_ <html> <head> <title> form </title></head> <body bgcolor="red"> <form> <input type="text" name ="foo" value="bar"/> <select name="sport"> < option> water balloon shotput</option> <option> 17-legged race</option> </select> choose ur fav. types of wrestling: <input type ="checkbox" name ="wrestling" value ="mud"/>mud <input type ="checkbox" name ="wrestling" value= "jello" />jello </form> </html> _MARKER_