Reasonably sure that's the problem. This line in particular:
print "<font face="Sans Serif">Hey there hi there ho there</font>\n";
The quotes around
Sans Serif are breaking things. You'll have to escape them so Perl doesn't treat them as the end/beginning of the string.