[Israel.pm] redirecting STDERR

Gabor Szabo szabgab at gmail.com
Wed Jun 15 14:17:13 PDT 2005

On 6/15/05, Levenglick Dov-RM07994 <DovL at freescale.com> wrote:
> Hi,
> I want anything written to STDERR to be written in to a scalar (or an array if needed). I don't want to go through a file.

local *STDERR;
open STDERR, ">", \$file or die $!;
print STDERR "hello world\n";


More information about the Perl mailing list