[thelist] What characters to 'escape' Perl?

Hugh Blair hblair at hotfootmail.com
Mon Feb 24 21:46:01 CST 2003


Hi y'all,

My lack of Perl is showing. What characters need to be 'escaped'
in the following type of statements? (This Is not complete, just
representitive of the lines in this routine)

print 'Content-type: text/html\n\n';
print '<html>\n' ;
print '<head>\n' ;
print '<title>Recommend</title>\n' ;
print '</head>\n' ;
print '<body bgcolor=\"$BodyColor\">\n' ;
print '<td width=\"33%\" align=\"middle\">\n' ;
print '<td width=\"100\" bgcolor=\"$TableColor\">\n' ;
print '<font face=\"Arial,Helvetica\" color=\"$TableFont\">\n' ;
print 'To:</font> </td>\n' ;
print '<!--\n' ;
print 'Copyright 1999-2002\n' ;
print '-->\n' ;
print '</body>\n' ;
print '</html>\n' ;

I thought all of these   " @ % $    were the only ones,
but something is still failing and I can't find it.
Also, is there any rules when these characters should *not*
be escaped in the type of statements listed above?

Thanks in advance,

--
   Hugh




More information about the thelist mailing list