Trizor has asked for the wisdom of the Perl Monks concerning the following question:
And what I mean is:[% section ? ucfirst(section) _ ' - ' : '' %]
But what I get is:print ucfirst(section).' - 'if section;
So my question is, what should I write to mean that, or what does Template think I mean by that. Either answer would be greatly helpful, as what I gleaned from the documentation has me under the impression that my statement is completely legal and should work.-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template newbie question. Is it lack of understanding or lack of DWIM
by friedo (Prior) on Apr 16, 2007 at 18:51 UTC | |
by Trizor (Pilgrim) on Apr 16, 2007 at 18:56 UTC | |
by Rhandom (Curate) on Apr 16, 2007 at 20:47 UTC | |
|
Re: Template newbie question. Is it lack of understanding or lack of DWIM
by Rhandom (Curate) on Apr 16, 2007 at 20:43 UTC |