Skip Menu |

This queue is for tickets about the HTML-Template-Pluggable CPAN distribution.

Report information
The Basics
Id: 18129
Status: resolved
Priority: 0/
Queue: HTML-Template-Pluggable

People
Owner: rhesa [...] cpan.org
Requestors: dan.horne [...] redbone.co.nz
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.13
Fixed in: (no value)



Subject: Tests fail with multiple "Called UNIVERSAL::can() as a function, not a method" messages

Message body is not shown because it is too large.

From: dan.horne [...] redbone.co.nz
This attached patch seemed to fix the problem for me
--- Dot.pm 2005-10-05 09:40:53.000000000 +1300 +++ Dot.pm.new 2006-03-12 16:08:21.000000000 +1300 @@ -2,6 +2,7 @@ use vars qw/$VERSION/; $VERSION = '0.97'; use strict; +use Scalar::Util qw(blessed); =head1 NAME @@ -338,7 +339,7 @@ (?:\.|$) # dot or end of string //xi ) { my ($id, $data) = ($1, $2); - if (ref($ref) && UNIVERSAL::can($ref, 'can')) { + if (ref($ref) && blessed($ref)) { # carp("$ref is an object, and its ref=", ref($ref), Dumper($ref)); if($ref->can($id)) { my @args = ();
Subject: Re: [rt.cpan.org #18129] Tests fail with multiple "Called UNIVERSAL::can() as a function, not a method" messages
Date: Mon, 13 Mar 2006 13:01:18 +0100
To: bug-HTML-Template-Pluggable [...] rt.cpan.org
From: Rhesa Rozendaal <rhesa [...] cpan.org>
Guest via RT wrote: Show quoted text
> Sat Mar 11 21:03:56 2006: Request 18129 was acted upon. > Transaction: Ticket created by guest > Queue: HTML-Template-Pluggable > Subject: Tests fail with multiple "Called UNIVERSAL::can() as a function, > not a method" messages > Owner: Nobody > Requestors: dan.horne@redbone.co.nz > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=18129 > > > > When rnning the install, many tests fail (base HTML::Template v 2.8, > RHEL 4.1): >
Hi Dan, Thanks for reporting this. Apparently UNIVERSAL::can is now officially deprecated. Your suggestion to use blessed() instead works great. I have some other patches I want to incorporate as well. A new version should be on CPAN somewhere this week. Thanks! Rhesa
Subject: RE: [rt.cpan.org #18129] Tests fail with multiple "Called UNIVERSAL::can() as a function, not a method" messages
Date: Tue, 14 Mar 2006 22:57:56 +1300
To: <bug-HTML-Template-Pluggable [...] rt.cpan.org>
From: "Dan Horne" <dan.horne [...] redbone.co.nz>
Hi Rhesa Look forward to trying out the new version Cheers Dan
Fixed in 0.14. Thanks Dan!