Gossamer Forum
Home : General : Perl Programming :

No Escaped?

Quote Reply
No Escaped?
Am I right in thinking you donít need to escape anything as long as html code is in between these:

print qq| |;

and the variables I'm calling - I asume these ok in the same mix?

All seems to be working correctly ( but hey! I'm a newbie at perl! )

Sample section from script:


print "Content-type: text/html\n\n";
print qq|

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Printer Page Format</title>
</head>
<body>
$doc
<p>&nbsp;</p>
<p>&nbsp;</p>
Page printed from: $refer<br />
Date: $date.<br />
</body>
</html>

|;

--------------------------------
Privacy Software

Last edited by:

BLOOD: Apr 25, 2004, 3:01 AM
Quote Reply
Re: [BLOOD] No Escaped? In reply to
Correct. Just be sure not to use actual | in your HTML :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] No Escaped? In reply to
Ahh, good tip - thanks!

--------------------------------
Privacy Software