in reply to Not getting clean HTML using print
Hi,
I can think of a few things that might be a problem. First of all, you must escape the quotation marks included in your print statements. For example, you have:
print "<select name="sport">";
Perl doesn't know that the quotation mark after name= is not
an ending quotation for the entire string. To fix this,
you need to escape the quotation marks with the backslash.
The new code would look like this:
print "<select name=\"sport\">";
See if this works for you. If it does not solve your problem, perhaps apache (or whatever webserver you are using) is not set up to to execute CGI programs. You may need
to add a ExecCGI directive to the appropriate place in your httpd.conf. See if these work. Hope this helps.