Re: [Templates] Template::Plugin::Class -- error with dynamic arg.
[prev]
[thread]
[next]
[Date index for 2005/02/09]
On 7 Feb 2005, at 22:05, Bart Simpson wrote:
> Using T::P::Class, if i say:
> [% USE class =3D Class(myhash.$mykey) %]
>
> usiing a variable as argument and then call a method
> with class
> [% class.mymethod %]
>
> in one template i get this error:
> undef error - Can't call method "accessor_classes"
> without a package or object reference at
> /usr/lib/perl5/site_perl/5.8.5/Template/Plugin/Class.pm
> line 35.
Is class.mymethod really class.accessor_classes=01?
Please don't obscure your failing case, as then you're asking people to =20=
solve two puzzles, 1) what your code really is. 2) what's wrong with =20=
it.
> http://lists.netthink.co.uk/pipermail/maypole/2004-September/=20
> 000688.html
This was a different problem. One of trying to call object methods as =20=
class methods. It made it over to the Class::DBI list iirc.
--=20
Richard Clamp <richardc@xxxxxxxxx.xxx>
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates