Skip Menu |

This queue is for tickets about the Class-DBI CPAN distribution.

Report information
The Basics
Id: 24717
Status: open
Priority: 0/
Queue: Class-DBI

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: UNIVERSAL::can() called as a function.
The UNIVERSAL::can module (loaded by Test::MockObject) is "helpfully" informing me of this... Called UNIVERSAL::can() as a function, not a method at /usr/lib/perl5/site_perl/5.8.0/Class/DBI.pm line 265 Technically it should be calling can on the object rather than as a method. eval { $_->can("id") } and $_ = $_->id for @pk_values; Or just eliminate the ->can() call entirely. for(@pk_values) { eval { $_ = $_->id } }
I am also seeing this "helpful" message quite a bit. It really makes it difficult to read the output of my test files. Is there any chance this might be fixed in a future release? Seems like an easy resolution. Thanks, -Bob