in reply to Re^2: Reading only STDERR
in thread Reading only STDERR

I hadn't discerned from your original post what you wanted done with STDOUT. To have it sent to parent's STDOUT, you do this in parent.pl:
$pid = open3(\*WTRFH, '>&STDOUT', \*ERRFH, 'perl child.pl');

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^4: Reading only STDERR
by nomis80 (Sexton) on Apr 06, 2005 at 14:02 UTC
    Thank you very much, that's exactly what I needed. I hadn't realized that you were supposed to write the name of the filehandle in a string. I thought it didn't make much sense, but hey, does Perl make any sense at all? Thanks again!
      Filehandles have always been kludgy. They are just bareword strings that, in the right context, get looked up in the symbol table. Directory handles are the same way. This is probably the most unfortunate design feature in Perl.

      Caution: Contents may have been coded under pressure.