in reply to Serving up static content with perl?

To include this stuff I just got all the code from a typical page and put it into a heredoc in my script and output it like that. It didnt work.

If you grabbed a web page and embedded it in a heredoc, you probably forgot to include a valid HTTP response header. Add   Content-type: text/html at the top of the heredoc, followed by at least one blank line.

That said, you're better off using one of the templating mechanisms, such as HTML::Template.