in reply to Print perl source code in compiled script...
See also: Best way to keep script with generated output
Update: Also:
Re: How I Learned About Quines (Thanks, GrandFather!) Reading sourcecode at parsing/compilation (CHECK) time? Print Current Program Source Code reading __DATA__ more than once
Update2: And the converse:
weaving output into code
HTH,