This has nothing to do with DBI. You were using a variable you didn't declare ($DBI), and you asked to make such things errors by using (use strict;).
While $DBI::errstr is also a variable you didn't declare, use strict; forgives qualified ("::") package variables.
Although it's not documented, DBI->errstr might work. Maybe that's what you were using.
In reply to Re^3: Global symbol "$DBI" requires explicit package name
by ikegami
in thread Global symbol "$DBI" requires explicit package name
by NateTut
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |