Скачай Perl http://www.activestate.com/activeperl/downloads и когда будешь устанавливать выбери к примеру c:/usr/
и будит у тебя в файлах перла тогда правильный путь #!/usr/bin/perl
В папку localhost кинь файл test.pl с содержанием:
#!/usr/bin/perl print "Content-type: text/html\n\n"; print "<html>This is a test of /cgi/ directory of test.ru virtual server";