in reply to Re^2: Problem of scope : $SIG{__WARN__} in a module...
in thread Problem of scope : $SIG{__WARN__} in a module...

Firstly, you can get DBI to stop spitting errors by:

$dbh->{PrintError} = 0;

Secondly, $SIG{__WARN__} doesn't automagically cover anything printed to STDERR, only things that result from a call to warn(), which happens to cause a print to STDERR.

Finally, if neither of those applies, try:

our $SIG{__WARN__} = sub { ... }

For which I'm certain I will be flamed...

radiantmatrix
require General::Disclaimer;
s//2fde04abe76c036c9074586c1/; while(m/(.)/g){print substr(' ,JPacehklnorstu',hex($1),1)}

Replies are listed 'Best First'.
Re^4: Problem of scope : $SIG{__WARN__} in a module...
by wazoox (Prior) on Dec 04, 2004 at 13:07 UTC
    Ach, using our didn't come to my mind.
    I'll give it a try just in case...
    PS Why would you be flamed?