http://www.perlmonks.org?node_id=220165


in reply to HTML embedded in perl

You must escape double quotes or use the single one. So you can use one of

print STDOUT "<FONT COLOR=\"red\"> $data </FONT><P>"; print STDOUT "<FONT COLOR='red'> $data </FONT><P>"; print STDOUT << "EODATA"; <FONT COLOR="red"> $data </FONT><P> EODATA