perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Mak <p...@aaanime.net>
Subject [OT] using single quotes in HTML
Date Sun, 24 Feb 2002 04:44:30 GMT
I've seen the following programming style used before, for perl code
that prints HTML:

	print "<font color='red'>ERROR!</font>";

instead of:

	print "<font color=\"red\">ERROR!</font>";

Using the single quotes for the quotes in HTML allows for cleaner
syntax in perl, since then \" or qq{} is not required.

Does anyone know if there is a disadvantage of using single quotes in
HTML (e.g. compatibility issues somewhere? I'm not sure because almost
everyone only uses double quotes in HTML).

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message