in reply to Something is wrong and I don'tkow what

try using the CGI module to do your HTML output
or escaping the " marks inside the output strings
like so
print "<td> bgcolor=\"#8080FF\">\n"; ugly huh !!!!
to do this with the CGI module the above line would be
print td(-bgcolor => "#8080FF",);
much sexier
------------------------ use perl; ------------------------