bsprogrammer has asked for the wisdom of the Perl Monks concerning the following question:

I have code that runs via an http request. The code uses a cpan package which prints out a LOT of junk to stderr. I am already using log4perl for my code, but the cpan package sends everything to stderr which fills up the error_log with annoying messages. How can I stop this without editing the cpan package?

Replies are listed 'Best First'.
Re: redirect stderr from cpan packages
by roboticus (Chancellor) on Jan 05, 2012 at 09:23 UTC
Re: redirect stderr from cpan packages
by Anonymous Monk on Jan 05, 2012 at 09:00 UTC

    How can I stop this without editing the cpan package?

    turn off debugging/logging option which sends messages to stderr by manipulating the appropriate variable or calling the appropriate method

    See also STDERR going to string