Subject: | [patch] UNIVERSAL::can() warnings in Template::Provider |
We often get this warning from Template::Provider using
Template-Toolkit-2.18, Linux 2.6.17-11, perl 5.8.8:
Called UNIVERSAL::can() as a function, not a method at
/usr/local/lib/perl/5.8.8/Template/Provider.pm line 276
To fix this, we applied this patch to Template::Provider:
285c285
< elsif (UNIVERSAL::can($dir, 'paths')) {
---
Show quoted text
> elsif (ref($dir) && UNIVERSAL::can($dir, 'paths')) {
Test suite passes after the patch.
Thanks,
Ted Carnahan