I like Dave Cross' answer, and I agree with both he and codnodder about EVAL_PERL
, which I've yet to find necessary as a solution in 7 or 8 years of almost daily TT use.
Personally, I would use:
[%- USE fmt = Class('Locale::Currency::Format'); -%]
<td>[% fmt.currency_format(var1, var2, var3) %]</td>
But if I was using this all the time, I'd be tempted to write a TT plugin wrapper around it.