in reply to Can't produce a web page via CGI

Your parentheses don't match. Try commenting out the last half of your print statement (6 lines or so). It should at least run then. Then add rest back in till you spot your mistakes.
---
my name's not Keith, and I'm not reasonable.