I've got a method that returns an array if it's called in list context
and an iterator object for that same array if called in scalar
context. The problem is that Template seems to always call methods in
list context so I never manage to (easily) get to the iterator.
Is there any way I can choose the context in which the methods will be
called inside the template?

--
Eden Cardim
Instituto Baiano de Biotecnologia
Núcleo de Biologia Computacional e Gestão de Informações Biotecnológicas
Laboratório de Bioinformática
--
"you seem to think that 'close enough' is close enough...
please learn to be 'literal' around programming."
merlyn - on irc.freenode.net#perl

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to