Mark Hazen wrote:
> I am hoping there is a someone brilliant on this list that can help me.  A
> little while ago, I posted to clp.perl asking how I can capture the trace
> output from DBI into a variable.  Since DBI is an external process, I
> couldn't do it just by piping STDERR.  Benjamin Goldberg came up with a
> module called IO::Capture (see below).  It works amazingly well in standard
> Perl.  Here is a sample script:
> 
> use IO::Capture;
> $capturer = IO::Capture->new(\*STDERR);

Doesn't IO::Scalar do the same?
http://perl.apache.org/guide/porting.html#Redirecting_STDOUT_into_a_Scalar

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

Reply via email to