I can say that it is *not* possible to generically capture stdout from
Inline::C (a la printf), as far as I know. I would not expect to be able to
do it with Python, since that's a C library as far as Perl is concerned. If
you can redirect the output to a file handle, that's not too big a
surprise, but already better than I would have expected.

David
On Mar 19, 2013 10:51 AM, "Chris Nighswonger" <cnighswon...@foundations.edu>
wrote:

> On Tue, Mar 19, 2013 at 3:15 AM, Stefan Seifert <n...@detonation.org>
> wrote:
>
> > On Monday 18 March 2013 21:10:24 Chris Nighswonger wrote:> Is
> > > there a way to redirect the stdout of the resulting child process?
> >
> > It's the same stdout, you use in Perl.
> >
>
> I'm sorry: I should have worded my question directly. Here is what I need
> to do:
>
> open STDOUT, ">", \$var
>
> So long as I have STDOUT write to a file, things work fine. when attempting
> to write to a variable, Perl borks.
>
> Kind Regards,
> Chris
>

Reply via email to