Gossamer Forum
Home : General : Perl Programming :

Write HTML in PERL

Quote Reply
Write HTML in PERL
 
I have a small problem with PERL that I think that you can answer easy.

QUESTION
How can I write this in perl with print qq|; ............ |;
As you can see have I ";" and "{}" in the html and that is the problem.

<style TYPE="text/css">
<!--
A:link {text-decoration: none; color: #FFFFFF;}
A:visited {text-decoration: none; color: #FFFFFF;}
A:active {text-decoration: none; color: #FFFFFF;}
-->
</style>

/GuzZzt
Quote Reply
Re: Write HTML in PERL In reply to
Hmm:
Quote:
print qq|<style TYPE="text/css">
<!--
A:link {text-decoration: none; color: #FFFFFF;}
A:visited {text-decoration: none; color: #FFFFFF;}
A:active {text-decoration: none; color: #FFFFFF;}
-->
</style>

|;

works for me? When using qq| the only things you have to worry about are @ and |. Make sure you escape any @ characters, and if you have lots of | in your text, switch to print qq~ or some other delimiter.

Hope this helps,

Alex