in reply to Why doesnt it work

Can you run it from the command line? If you haven't yet done so, get the ActiveState compiler -- using the CGI module, you can run your scripts from the command line and simulate working in a browser environment.

I suspect you probably want to do something like: print "Content-type: text/html\n\n"; before you print anything else to the browser, as you'll definitely get the "500 Internal Error message" without it. The appropriate subroutine in CGI.pm is header(). If that fails, see My CGI script runs from the command line but not the browser. (500 Server Error).

Replies are listed 'Best First'.
RE: Re: Why doesnt it work
by Liam (Initiate) on Mar 25, 2000 at 04:16 UTC
    thanks. But it still doesn't seem to work. I got O'reilly's Learning Perl book, and thats the code it tells me on the chapter to do with CGI. anyone know where i can find a place to tell me how to turn my Perl into CGI, so i can write forms,etc