Template::Toolkit 2.24 behaves weird when I store an aggregate item to a variable. The result of
defined is not quite consistent. Look:
tpage <<EOF
[% group= ["test string"]; g = group.1 %]
[% IF g.defined != group.1.defined %]Seems like a bug![% END %]
EOF
Seems like a bug!
defined appears to behave like exists($ttstash{var}). The doc is inconsistent in that they tell about a value, not about a variable. The variable is assigned to, defined in this sense, but it is assigned an undefined value.
Isn't that a bug to report?