Here's a simple recipe to reproduce this:
my $dbh = DBI->connect(...);
print "overloaded\n" overload::Overloaded($dbh);
The error that comes out is:
can: handle 'DBI::db' is not a hash reference at dbi.pl line 9.
This is coming from DBI, because the Overloaded function looks like this:
sub Overloaded {
my $package = shift;
$package = ref $package if ref $package;
$package->can('()');
}
I have no idea why Overloaded insists on calling can on the package
instead of the object, but that really doesn't seem like something that
should cause a fatal error, does it?
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/