| 1 |
IO::Capture |
| 2 |
|
| 3 |
The IO::Capture Module defines an abstract base class that can be |
| 4 |
used to create any number of useful sub-classes that capture output |
| 5 |
being sent on a filehandle such as STDOUT or STDERR. |
| 6 |
Several modules come with the distribution that define sub- |
| 7 |
classes of IO::Capture to do just that. (I.e., capture STDOUT and STDERR) |
| 8 |
See the man page IO::Capture::Overview for a discussion of these |
| 9 |
modules and how to build a module to sub-class the B<IO::Capture> |
| 10 |
class yourself. |
| 11 |
To build and install this module, follow the standard procedures: |
| 12 |
|
| 13 |
$ perl Makefile.PL |
| 14 |
$ make |
| 15 |
$ make test |
| 16 |
$ su |
| 17 |
# make install |
| 18 |
|
| 19 |
|
| 20 |
Report any problems via http://rt.cpan.org/. |
| 21 |
|
| 22 |
CHANGES: |
| 23 |
I found a couple of problems that made me re-think the module |
| 24 |
IO::Capture::ErrorMessages. As a result, I am removing this |
| 25 |
module from the distribution. It is now depreciated and will |
| 26 |
be remove in the next release. IO::Capture::Stderr now has |
| 27 |
has the same functionality that IO::Capture::Stderr did previously, |
| 28 |
and can be used instead. |
| 29 |
|
| 30 |
I have added a new parameter to IO::Capture::Stderr, "FORCE_CAPTURE_WARN". |
| 31 |
It controls capturing text sent via warn(), if $SIG{__WARN__} has been |
| 32 |
changed. The default is to let the text go to the handler set in |
| 33 |
$SIG{__WARN__}. If you want to override this, set FORCE_CAPTURE_WARN |
| 34 |
to a 1. |