No such thing as a small change | |
PerlMonks |
Undef value in Template Toolkitby DreamT (Pilgrim) |
on Aug 20, 2019 at 14:13 UTC ( [id://11104730]=perlquestion: print w/replies, xml ) | Need Help?? |
DreamT has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I want to set a value to undef in a TT template: [% hashref.value1 = undef %] , but this only produces an empty string.
Is there a way around this? From what I've read it seems to be a "feature" in Template Toolkit that undefs are treated as empty strings.
Back to
Seekers of Perl Wisdom
|
|