in reply to Redirecting STDERR to a variable
Note that the redirection 2>&1 and 1>NULL works under DOS.use IO::File; my $f = new IO::File; $f->open("program 2>&1 1>NULL |") or die "Can not open stderr from ano +ther process."; while (<$f>) { ... do stuff }
|
|---|