Calling UNIVERSAL::can() as a function is allowed. (was: [OT] best way to determine existence of a function in a package)
Kake L Pugh
kake at earth.li
Wed Nov 21 20:05:42 GMT 2007
On Wed 21 Nov 2007, Andy Wardley <abw at wardley.org> wrote:
> I've been personally bitten by the OO dogma when I started getting bug
> reports about TT not working with one of the popular database ORM packages
> (Class::DBI? DBIx::Class? Can't remember off hand). It turns out that
> this package had recently started using the UNIVERSAL::can from CPAN which
> advertises itself as a "Hack around people calling UNIVERSAL::can() as a
> function".
I had to stop using Test::MockObject because of this. It's a shame,
because I liked Test::MockObject, but if it won't play nicely with
Template then I can't use it.
Kake
More information about the london.pm
mailing list