in reply to HTML embedded in perl

Hi. I think you should be escaping the " not the = like this:
print STDOUT "<FONT COLOR=\"red\"> $data </FONT><P>";
either that, or you use single quotes:
print STDOUT "<FONT COLOR='red'> $data </FONT><P>";
cheers :-)