我在 Win 7 机器上使用 ActivePerl,我想使用 Proc::Reliable CPAN 模块。它下载并正确安装,但是当我尝试运行以下代码时,它失败了run
my $newProc = Proc::Reliable->new()
$newProc->run("perl.exe -e print 'hello world'");
我尝试了几件事,例如测试status
并尝试检索输出,但没有运气。据我所知,该程序在run
.
作为参考 perl.exe 在我的PATH
变量中,我从命令行调用它:perl.exe test.pl