in reply to Quering database data in perl cgi script
print "<html>"; print '<head>'; print "Content-Type: text/html\n\n";
One problem is that it's traditional to send the tags after the headers. Try something like...
print "Content-Type: text/html\n\n"; print "<html>"; print '<head>';
In Section
Seekers of Perl Wisdom