On Mon, 4 Feb 2002, Pfeiffer, Richard wrote:
> Trying to get STDERR to not print to the screen but rather to a file, or
> better yet, an array.
> Easy to do in UNIX (because I know how, of course):
> vcs -v >file.out 2>&1
>
> but how would I do it in Perl? I've tried a few variations of: p
# To capture the error use:
open(OLDERR, ">&STDERR") or die $!; # backup filehandle
open(STDERR, ">standard_errors") or die $!; # errors go here now
## do your stuff here
open(STDERR, ">&OLDERR") or die $!; # restore filehandle
-Original Message-
From: Pfeiffer, Richard [mailto:[EMAI