in reply to Re: How to capture (intercept) output (warnings) of a module
in thread How to capture (intercept) output (warnings) of a module
But since this is a wrapper around a C lib you might really need to temporarily redirect STDERR and STDOUT to a variable
That would not work unless the C lib performs IO through the PerlIO layer (instead of the usual stdio C layer), something very unlikely.
On the other hand, libtiff provides a TIFFSetWarningHandler function just for customizing error reporting. It is not exposed by the Perl wrapper, but adding that feature shouldn't be too difficult.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to capture (intercept) output (warnings) of a module
by vr (Curate) on Sep 05, 2020 at 12:02 UTC | |
by LanX (Saint) on Sep 05, 2020 at 15:06 UTC | |
by vr (Curate) on Sep 05, 2020 at 22:29 UTC | |
|
Re^3: How to capture (intercept) output (warnings) of a module
by LanX (Saint) on Sep 05, 2020 at 10:36 UTC | |
by salva (Canon) on Sep 05, 2020 at 12:15 UTC |