in reply to Can't get cgi to work

hi rom, i see you're new here, so try to read first if you want to be helped
Anyway, as i understand you, your module (script?) works, but when you put it in a cgi directory, using CGI you get a server error? unknown to us on this moment :).

Well, you probably need to set the rights to execute the script (aka on linux chmod 750 script.pl, and see if the proper user is the owner, and the group that apache runs on, can execute the script.

Look if you have sudo enabeled in apache, then the rights are even more strict.

Next, look at the output of your script, when you run it from the command-line, to see if there might be weird output of your script. (Do you create a proper html-header?) etc.etc., next when running on Windows, delete your os, install linux and practice. If all is ok, you might run on Windows again (if you still want it) ;-)....

Good luck

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.