> -----Original Message-----
> From: Alexandru Palade [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 11, 2005 4:54 AM
> To: Williams, Ken (TLR Corp)
> Cc: inline@perl.org
> Subject: Re: accesing the C-space stdout
> 
> Yes, I can modify enum_files and I tried to do as you 
> suggested. To get a FILE* to the currently selected 
> filehandle I tried the following, in enum_files():
> 
> IO*           io = GvIOp(PL_defoutgv);
> PerlIO*       ofp = IoOFP(io);
> fout = PerlIO_exportFILE(ofp, "w");

Can you print directly to the IO* object, like so?

   IO* io = GvIOp(PL_defoutgv);
   PerlIO_printf(io, fmt, ...);

Or do you need to pass true file descriptors to a lower-level function?

 -Ken

Reply via email to