in reply to Template newbie question. Is it lack of understanding or lack of DWIM
use CGI::Ex::Template; my $t = CGI::Ex::Template->new; my $html = "Test: [% section|ucfirst _ '-' IF section %]\n"; $t->process(\$html, {section => "foo"}); $t->process(\$html, {section => ""}); __END__ prints: Test: Foo- Test:
|
|---|