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


in reply to When to use templates?

Templates allow you to separate your code from the content (web page, E-mail, form-letter, report, etc.). You can submit the template to a non-programmer to work on, or even give the non-programmer access rights to modify the template.

It also allows for code re-use. Rather than having multiple scripts that generate similar output (such as the results of an SQL query), you have one script with several templates. This makes maintenance so much easier!