in reply to Problems with 500 server errors

There are a number of issues with this code that I see. Let me make some general suggestions, based upon the above code:

  1. use strict and the -w line in your code, and make sure the line that starts with #! points to where perl is actually installed on the web server.
  2. Run this program, with all the above, from the command line, and see if it works.
  3. Find a good, solid book and/or online tutorial on the basics of CGI programming. I'll recommend Ovid's use CGI or die; and his CGI course for starters.

Part of the reason I'm doing this as a general overview is that I don't know what OS you're using, or what web server you're using. As far as the code itself, you've given it to us w/o the file to test it on, and it's not obvious from the code what the file is, or the structure it has. That all makes it hard to debug.

Please read through the above, and post back with more details if you're still stumped.

----Asim, known to some as Woodrow.