in reply to Apache+Perl

We need more to go on.

Try this simple script, and post the resulting line(s) from your web and error logs.

[test.cgi] #!c:/perl/bin/perl.exe -w print "Content-type: text/plain\n\n"; print "it works!\n";