in reply to HTML embedded in perl
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.
|
|---|