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

IO::Scalar can redirect STDOUT for the mod_perl script itself, but not any
external processes like DBI.  I am still left without a solution.  It amazes
me.

Mark

Reply via email to