in reply to Template::Toolkit - uc() and lc(), other simple formatting mutators - see TT Filters!
And then in your template...my $ucfirst = sub { ucfirst($_[0]) }; $template->process($template_name, { %vars, ucfirst => \&ucfirst });
[% ucfirst(foo) %]
|
|---|