develooper Front page | perl.perl5.porters | Postings from March 2003

Re: [perl #19898] [PATCH] forking to Perl children with IPC::Open3

Thread Previous
From:
hv
Date:
March 16, 2003 16:47
Subject:
Re: [perl #19898] [PATCH] forking to Perl children with IPC::Open3
Message ID:
200303170050.h2H0oHN16255@crypt.compulink.co.uk
Adam Spiers (via RT) <perlbug-followup@perl.org> wrote:
:I wanted IPC::Open3 to allow forking to Perl children rather than to
:external commands, which is all it supports at the moment.  The patch
:is very clean and simple, and follows below.  It merely allows you to
:specify '-' as the external command, and in exactly the same way that
:Perl lets you fork to a Perl child via
:
:  my $pid = open(FH, '-|');
:
:you can now do
:
:  my $pid = open3(\*WTRFH, \*RDRFH, \*ERRFH, '-');
:
:and the net effect will be analogous to
:
:  my $pid = fork;

Thanks, applied as change #19002.

It would be helpful if you could also supply a patch to the tests
that exercises this new functionality.

Hugo

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About