in reply to CGI question

Whenever you get a 500 error, first step I would recommend in your debug procedure is to run it from the command line. Most times a an error will pop up right there. What you want to check for is something (like an error message) being printed before your header (speaking of which we can't see your code that is printing you headers, so I can't comment on how you are printing your headers, which could be another problem).

Second step would be to check the log files for an error message. This might clue you into a permission problem.

If you do those 2 steps there isn't usually a step 3 :)


couple comments on your code:

You are calling in all the CGI methods into your namespace (use CGI ':standard') but then you use the Object interface.

You do a 'use vars qw($baseURL);' when (I'm guessing) you only need a lexical scoped to the main package 'my $baseURL;'



grep
Unix - where you can throw the manual on the keyboard and get a command