Subject: | Debug data needs a destination other than STDOUT |
The current DEBUG_INFO sub just prints the data out on standard out.
However, this debug information could be output into a filehandle,
similar to the DBI->trace method. Closing and opening STDOUT is a
workaround, but this redirects ALL STDOUT traffic, which isn't what I
wanted.
This could be implemented as a second parameter on the debug method.
Support for filehandles is preferred (or both) over a filename
parameter, so that PerlIO::via filehandle support works.