Why is there a “0 CLEARED by call to connect method” warning in DBI_TRACE?
问题 I'm wondering why a warn appears when using DBI_TRACE=1 upon connecting to any DB. Bonus points to a way to write clean code that doesn't exhibit it. I'm speaking about the !! warn: 0 CLEARED by call to connect method that seems harmless, since the code does work as intended. Note that it doesn't appear without setting the DBI trace mode. Sample Perl code (using SQLite): use warnings; use DBI; DBI->connect("dbi:SQLite:dbname=test.sqlite","","") or die $DBI::errstr; Sample output : DBI 1.612