in reply to [untitled node, ID 212629]

You can always explicitly send a header -- it doesn't look like you're doing that. CGI.pm makes it easy:
print $q->header('text/html');
perldoc CGI for more on this. Or, you can send your header manually:
print "Content-type: text/html\n\n";
Other than that, I'm not sure why the Mozilla browsers aren't rendering the code. Perhaps posting the contents of the $page variable or the *.rs files would help.