Perl程序如何设置DOS环境里的环境变量?
举例说明吧,test.pl
#!/usr/bin/perl -w
system ( "set path=c:\testools;%path%" );
system ( "test.exe" ); # test.exe is under c:\testtools
在DOS下运行“perl test.pl”,显示
'test.exe' is not recognized as an internal or external command,
operable program or batch file.
所以,有什么办法可以把这个新的环境变量加载进来呢?谢谢!