[Templates] Template::Plugin::Class -- error with dynamic arg.
[prev]
[thread]
[next]
[Date index for 2005/02/07]
Using T::P::Class, if i say:
[% USE class = 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.
.
while in another template with same USE statement.
it works.
If i hardcode a the classname in the argument, it
works.
Someone addressed this on Maypole and CDBI lists but
the problem wasn't talked about unfortuneately.
http://lists.netthink.co.uk/pipermail/maypole/2004-September/000688.html
Anyone know why this happens?
thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates