in reply to Re^2: Using SYSTEM2 on Windows
in thread Using SYSTEM2 on Windows
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using SYSTEM2 on Windows
by rthawkcom (Novice) on May 27, 2009 at 20:55 UTC |