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

Use this:
my $status = system ("$command $arg1 $arg2 $arg3 > $outfile"); if ($status) { print STDERR "Error: ", $status >> 8, "\n"; }

Replies are listed 'Best First'.
Re^8: System call doesn't recognise '>'
by Lauras (Initiate) on Dec 10, 2008 at 16:13 UTC
    That results in:

    Can't spawn "cmd.exe": No such file or directory at D:\advanced_progra +mming\test_syscall.pl line 13. Error: 255