aluckdog
my $cur_dir = `pwd`;chomp($cur_dir);my $file = "$cur_dir/bin/ProcessDir.exe";if(-e $file){my $str = `$file`; #see below comments:print "str is $str \n";}#直接在windows cygwin下面调用返回正常,但通过CGI调用后$str返回为空string.解决把 $cur_dir 输出到网页上查看是什么内容。用 print "$@ $! $^E $?\n" 看看这些变量都什么内容