[Templates] Specifying context for method calls in a Template

Eden Cardim edencardim@gmail.com
Wed, 27 Dec 2006 14:27:10 -0300


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?

--=20
Eden Cardim
Instituto Baiano de Biotecnologia
N=FAcleo de Biologia Computacional e Gest=E3o de Informa=E7=F5es Biotecnol=
=F3gicas
Laborat=F3rio de Bioinform=E1tica
--
"you seem to think that 'close enough' is close enough...
please learn to be 'literal' around programming."
merlyn - on irc.freenode.net#perl