[Templates] Called UNIVERSAL::can() as a function, not a method at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Template/Provider.pm

Kake L Pugh kake@earth.li
Sun, 10 Jun 2007 00:41:38 +0100


Kake L Pugh wrote:
>> We're also seeing this warning when running the OpenGuides tests
>> (Template Toolkit 2.19).  Is there anything that can be done about it?

On Sat 09 Jun 2007, Andy Wardley <abw@wardley.org> wrote:
>
> Perrin's answered this elsewhere:
>
>   http://readlist.com/lists/lists.rawmode.org/catalyst/0/4973.html
>
>   "This is because you have installed chromatic's UNIVERSAL::can module.
>    Maybe you installed Test::MockObject and it grabbed this too? The
>    normal UNIVERSAL.pm that ships with perl doesn't do this."

Thanks, Andy and Perrin.  We rewrote the tests today to avoid the use
of Test::MockObject, and all is happy again.

Kake