Thread $dbh->trace($level, $filename);: möchte Ergebnis aber in Scalar (6 answers)
Opened by steffenw at 2006-05-20 13:25

renee
 2006-05-20 13:48
#34418 #34418
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Aus DBI:
Quote
Trace Output

Initially trace output is written to STDERR. Both the $h->trace and DBI->trace methods take an optional $trace_filename parameter. If specified, and can be opened in append mode, then all trace output (currently including that from other handles) is redirected to that file. A warning is generated if the file can't be opened.

Further calls to trace() without a $trace_filename do not alter where the trace output is sent. If $trace_filename is undefined, then trace output is sent to STDERR and the previous trace file is closed.

Currently $trace_filename can't be a filehandle. But meanwhile you can use the special strings "STDERR" and "STDOUT" to select those filehandles.


Wenn Du jetzt an STDERR eine Variable bindest, sollte es funktionieren...\n\n

<!--EDIT|renee|1148118876-->
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread $dbh->trace($level, $filename);: möchte Ergebnis aber in Scalar