flowdy has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template::Toolkit: defined on aggregate item vs. defined on variable
by choroba (Cardinal) on Aug 05, 2016 at 12:35 UTC | |
|
Re: Template::Toolkit: defined on aggregate item vs. defined on variable
by beech (Parson) on Aug 05, 2016 at 17:46 UTC | |
by choroba (Cardinal) on Aug 05, 2016 at 22:11 UTC | |
by beech (Parson) on Aug 05, 2016 at 22:26 UTC | |
by choroba (Cardinal) on Aug 05, 2016 at 22:40 UTC | |
by beech (Parson) on Aug 06, 2016 at 00:57 UTC | |
by flowdy (Scribe) on Aug 05, 2016 at 21:18 UTC |