in reply to Running a Sub from a Text File 2

The simplest way to output HTML is to use fast templates. This will keep code aside your HTML and let you control the layout separately. A.