Hello,
due to a bug in my template I did call the "size" method (that is meant
for list variables normally) on an "undef" variable:
[% test = unknown %] test.size=[% test.size %]
where unknown is not a value. Or with a real value:
[% test = 2 %] test.size=[% test.size %]
Both print "test.size=
On 27.09.2010 14:57, Gert Brinkmann wrote:
> Why does it return 1 and not
> nothing?
Someone did send me the link to the manual:
http://www.template-toolkit.org/docs/manual/VMethods.html#section_size
size
Always returns 1 for scalar values. This method is provided for
consistency with the h