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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] No Escaped? In reply to
Ahh, good tip - thanks!

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