in reply to Re^2: When to use templates?
in thread When to use templates?

I think if it gets to the point where you really need more complex functionality, then you may want to look at Mason or Template Toolkit (or whatever you choose). The limitations of HTML::Template are by design.