http://www.perlmonks.org?node_id=11121369


in reply to Re^2: How to capture (intercept) output (warnings) of a module
in thread How to capture (intercept) output (warnings) of a module

I've always been under the impression that redirections are inherited to° a child process.

But you should know better.

> libtiff provides a TIFFSetWarningHandler function just for customizing error reporting.

I've recommended this myself, but I'm not sure if this interface allows a Perl sub as call back.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) Correction: to "bequeath", to "pass on" in correct English, "inherit" can't be used that way