The real point of templates, and to a much lesser extent heredocs, isn't to reduce the work involved in creating the html in the first place (although it can). The real point is to seperate code and presentation. The html is the presentation, the perl is the code. Seperating them has many benefits, most of which have been listed elsewhere before.