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

my @array = ($command, $arg1, $arg2, $arg3); system "@array > $outfile";

Results in:

Can't spawn "cmd.exe": No such file or directory at D:\advanced_progra +mming\test_syscall.pl line 11. and my @array = ($command, $arg1, $arg2, $arg3); open CMD, "@array > $outfile" or die "open() failed - $!";

gave:

Name "main::CMD" used only once: possible typo at D:\advanced_programm +ing\test_syscall.pl line 17. open() failed - Invalid argument at D:\advanced_programming\test_sysca +ll.pl line 17.