good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^5: Template::Toolkit: defined on aggregate item vs. defined on variable (STRICT)by beech (Parson) |
on Aug 06, 2016 at 00:57 UTC ( [id://1169235]=note: print w/replies, xml ) | Need Help?? |
:D *awesome* now I'm getting it Autovivification? This is the code
So testing it outside of tpage , it returns empty string instead of undef
None of the various https://metacpan.org/source/ABW/Template-Toolkit-2.26/t/stash.t seem to test defined But docs show https://metacpan.org/pod/Template::Stash#undefined-ident-args which links https://metacpan.org/pod/Template::Manual::Config#STRICT Which says its a regrettable design decision, so I guess not a bug tpage/ttree don't have / take a -template_strict option
In Section
Seekers of Perl Wisdom
|
|