Not much to go on here, but along with the other suggestions, you should check the permissions on your CGI file to make sure it's executable by the web server user. (If this doesn't mean anything to you, let us know and I or someone else will explain further.)
---
It's all fine and dandy until someone has to look at the code.