I think I know what's going on. I'll look into it.
Tim.
On Thu, Feb 26, 2004 at 04:25:15PM -0600, Dave Rolsky wrote:
> 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
> =======================*/