in reply to Re^3: System call doesn't recognise '>'
in thread System call doesn't recognise '>'

use Env qw(@PATH); print "@PATH\n"; unshift @PATH, "C:\\windows\\system32"; print @PATH; system "C:\\windows\\system32\\cmd.exe /C @array > $outfile"; shift @PATH;

It works!!

Thank you very very much!

Replies are listed 'Best First'.
Re^5: System call doesn't recognise '>'
by Corion (Patriarch) on Dec 11, 2008 at 09:23 UTC

    If you had actually read and followed the writeups, you would know by know that the C:\\windows\\system32\\cmd.exe /C part is superfluous.