JackDno7 has asked for the wisdom of the Perl Monks concerning the following question:

I've written a CGI script that works even though I have the following line in there:
print "<TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\n";
In every other instance where semi-colons are used, I have to escape them with the \ character. Why isn't that necessary in this case?

Replies are listed 'Best First'.
Re: Why don't these semi-colons need to be escaped?
by no_slogan (Deacon) on May 24, 2001 at 20:07 UTC
    You never need to escape semicolons. They're not special in double quoted strings.
Re: Why don't these semi-colons need to be escaped?
by davorg (Chancellor) on May 24, 2001 at 20:08 UTC
    You never have to escape semicolons in quoted strings.