in reply to Re: Sending STDERR to a filehandle
in thread Sending STDERR to a filehandle

Thats my problem, it's not making it into the while loop.

Replies are listed 'Best First'.
Re: Re: Re: Sending STDERR to a filehandle
by Mr. Muskrat (Canon) on Jun 09, 2003 at 18:43 UTC
    Are you sure? Try this on for size:
    my $cmd = q(perl -e 'die'); my $pid = open(ERROR, "$cmd 2>&1 1>/dev/null |"); print "$pid\n"; while (<ERROR>) { print "ERROR: $_\n"; }