use IPC::Run3 qw( run3 ); my $cmd = "cmd /D/C dir"; run3 $cmd, undef, \my @out, \my @err; print "STDOUT: $_" for @out; print "STDERR: $_" for @err;
@out and @err can be scalars if you don't need the lines to be split
In reply to Re^3: Using SYSTEM2 on Windows
by ikegami
in thread Using SYSTEM2 on Windows
by rthawkcom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |