Skip Menu |

This queue is for tickets about the IPC-Run3 CPAN distribution.

Report information
The Basics
Id: 27466
Status: resolved
Priority: 0/
Queue: IPC-Run3

People
Owner: Nobody in particular
Requestors: MTHURN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.037
Fixed in: (no value)



Subject: allow redirect to IO::String
Is there any chance you could enhance IPC::Run3 to allow the IO sink/source to be an IO::String handle? -- - - Martin 'Kingpin' Thurn
Subject: Re: [rt.cpan.org #27466] allow redirect to IO::String
Date: Wed, 6 Jun 2007 17:54:52 +0200
To: bug-IPC-Run3 [...] rt.cpan.org
From: "Roderich Schupp" <roderich.schupp [...] googlemail.com>
On 6/6/07, Martin Thurn via RT <bug-IPC-Run3@rt.cpan.org> wrote: Show quoted text
> Is there any chance you could enhance IPC::Run3 to allow the IO > sink/source to be an IO::String handle?
Like the attached patch? Note that when you do: my $io = IO::String->new; ... run3 [ qw/some program/ ], \undef, $io; you must rewind $io in order to read what some program "wrote" on it - just like when $io were a real filehandle. Cheers, Roderich

Message body is not shown because sender requested not to inline it.

I've applied this patch, added basic tests, and submitted a pull request: https://github.com/rjbs/ipc-run3/pull/3
Closed in favor of github issue https://github.com/rjbs/IPC-Run3/pull/3 -- rjbs