in reply to Printing to a specific place in a file

Put a tag in your .html file called something like
{news} Read your whole file into a variable say $page_html and replace: $page_html =~ s/\{news\}/$news_html/;
Simple enough.