I had the same problem on WinXP with Activestate 5.8.8.
I tried changing the env path (quoting all the entries with spaces), changing the path temporarily in the script by setting $ENV{PATH} and in a desperate measure putting cmd.exe in the same directory as my perl script. nothing worked. Then, I tried using system like this:
my $ret = system "C:\\WINDOWS\\System32\\cmd.exe /C $syscall";
where $syscall is a string you set with the program you want to call and all its arguments. Worked perfectly for me, after way too long scratching my head... Anyway, I hope it helps someone else.
|