This project is a mod_perl website written as one monolithic Site.pm weighing in at around twenty thousand lines. I'm in the process of introducing clean code, modules, and templates but it is simply not cost effective to do all this with "elbow grease" I want to convert rediculously numerous instances of $foo .= "bar\n"; into HereDocs as a step toward moving all the static HTML into templates.