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


in reply to Re: How to disable SQL Warning in DBI.pm
in thread How to disable SQL Warning in DBI.pm

errstr is being populated by SQL Warning messages.
  • Comment on Re^2: How to disable SQL Warning in DBI.pm

Replies are listed 'Best First'.
Re^3: How to disable SQL Warning in DBI.pm
by runrig (Abbot) on Mar 18, 2014 at 18:49 UTC
    Then there is no problem with PrintWarn (at least it sounds like your problem has nothing to do with PrintWarn). You can change the behavior with HandleSetErr, but why are you printing errstr or even caring what is in errstr if there are no errors? The problem resolution seems like it should be "Don't print errstr if there are no errors detected".