http://www.perlmonks.org?node_id=455764


in reply to Picking a Template Engine/Method

If it's really only <10 lines or so, as you post above, I suggest building another template, line-by-line, verbosely.

As for a system to use, this is one of those times I think you might actually want to use perl's built-in format system, with the template lines etc..

See perlman:perlform.