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=1". I would like to understand this behaviour. Why does it return 1 and not nothing? I would guess that the "undef" value is forced into an array inside like "(undef)" so that this is a list with one value (the undef) in it? Thanks, Gert _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates