HTML will use either type of quote so you could do
print STDOUT "<font color='red'> $data </font>";
This avoids a lot of backslashes in your code. As mentioned previously, putting html in your perl code is a potential maintenence headache though and hard coding colors lacks flexibility.
In reply to Re: HTML embedded in perl
by dga
in thread HTML embedded in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |