Think about Loose Coupling | |
PerlMonks |
Check for truth of variable in HTML::Templateby stevieb (Canon) |
on Jul 17, 2024 at 05:55 UTC ( [id://11160654]=perlquestion: print w/replies, xml ) | Need Help?? |
stevieb has asked for the wisdom of the Perl Monks concerning the following question: I am having a brain fart and old-timer moment. I'm tired and not seeing something obvious... Can I get a Monk to help me figure out how to check for truth when presenting an element with HTML::Template? I have the following code which essentially sets a done flag to true or false:
I then have an HTML::Template template that has this:
My expectation is, is that the TIME_FINISHED var will appear in the HTML table *if* the FINISHED var is true. My issue is that no matter what I set FINISHED to, the TIME_FINISHED always appears in the HTML. I can confirm with certainty that both variables are being passed along properly to the template. Please help me with what I'm completely missing. -stevieb
Back to
Seekers of Perl Wisdom
|
|