Apache2.2下perl脚本出问题------己解决

Apache2.2下perl脚本出问题------己解决

初学web,自己搭了server,添了个perl脚本,
html部分:
<html>
<title> my first perl program</title>
<body>
<h1>It works!</h1><br>
<h2>Hello world!</h2><br>
<h3>win32环境变量测试</h3><br>
<form method = "get" action="http://localhost/cgi-bin/env.pl">
<input type=submit value="查看CGI环境变量">
</form>
</body>
</html>

perl部分:

#!/usr/bin/perl
print"Content-type:text/html\n\n";
print"<title>Windows环境变量</title>";
print"<body>恭喜,websit已经成功<br>";
foreach $key(sort keys%ENV){
print"$key=$ENV{$key}<br>";
}
print"</BODY>";

老是提示500 Internal Server Error,叫我看log的详细信息,log信息如下:
[Wed Jun 13 14:38:27 2007] [error] [client 127.0.0.1] (OS 3)系统找不到指定的路径。  : couldn't create child process: 720003: env.pl, referer: http://localhost/test.htm
[Wed Jun 13 14:38:27 2007] [error] [client 127.0.0.1] (OS 3)系统找不到指定的路径。  : couldn't spawn child process: C:/Apache2.2/cgi-bin/env.pl, referer: http://localhost/test.htm
但是我env.pl是放在C:\Apache2.2\cgi-bin\env.pl,而且,从DzSoft Perl Editor模拟看perl脚本也没错阿
拜求各位指教

自己搞定了,perl路径问题