I've recently included a new module into a Catalyst application that's caused messages of the form:
Called UNIVERSAL::can() as a function, not a method at /opt/xt/xt-perl/lib/site_perl/5.8.8/i686-linux/Template.pm line 156 The module in question appears to use UNIVERSAL::can() [http://search.cpan.org/~chromatic/UNIVERSAL-can/] but I'm not sure why this has far reaching effects out to the Template code. Anyway, I decided to attempt to eliminate the error by reworking the can-as-function calls. I've attached a patch written against Template-Toolkit-2.20. The patch should be applied from the top-level of the distribution: $ patch -p0 --dry-run < template-2.2.0-can.patch patching file lib/Template/Iterator.pm patching file lib/Template/Plugin/Scalar.pm patching file lib/Template/Stash.pm patching file lib/Template.pm Hopefully I've not done anything insane, Chisel -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ It was in that moment I knew I had to resign before somebody got badly hurt by a pencil. _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates