Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-ObjectDriver CPAN distribution.

Report information
The Basics
Id: 53852
Status: resolved
Priority: 0/
Queue: Data-ObjectDriver

People
Owner: yann.kerherve [...] gmail.com
Requestors: ilmari+cpan [...] ilmari.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.06
Fixed in: (no value)



Subject: Uses deprecated defined(%hash)
Data::ObjectDriver::Driver::DBD->new uses defined(%hash), which causes a deprecation warning on perl 5.11.x. Here's a patch fixing it: diff --git a/lib/Data/ObjectDriver/Driver/DBD.pm b/lib/Data/ObjectDriver/Driver/DBD.pm index 1b0e792..53a8aed 100644 --- a/lib/Data/ObjectDriver/Driver/DBD.pm +++ b/lib/Data/ObjectDriver/Driver/DBD.pm @@ -11,7 +11,7 @@ sub new { die "No Driver" unless $name; my $subclass = join '::', $class, $name; no strict 'refs'; - unless (defined %{"${subclass}::"}) { + unless (%{"${subclass}::"}) { eval "use $subclass"; ## no critic die $@ if $@; }
I don't have perl5.11, so I believe you :-)
Please reopen if 0.07 didn't fix it