in reply to Embed a template in perl file
Not sure what exactly you want, but maybe here-docs, or __DATA__ ?