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

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

Thread Previous
March 16, 2003 16:47
Re: [perl #19898] [PATCH] forking to Perl children with IPC::Open3
Message ID:
Adam Spiers (via RT) <> 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.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About