<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1011842" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1011842</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-witghout-print-whatevern#comment-1068111</link>
    <description> &lt;p&gt;Ok, thanks people &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The one i was thinking of when I posted this was Vulkens so I will try that out. i really didn&#039;t understand the template one so I will leave that to the pro&#039;s &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
Thanks&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Jul 2000 20:21:55 +0000</pubDate>
 <dc:creator>minton</dc:creator>
 <guid isPermaLink="false">comment 1068111 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-witghout-print-whatevern#comment-1068077</link>
    <description> &lt;p&gt;It&#039;s always a good idea to use templates.&lt;/p&gt;
&lt;p&gt;Try to use fast-templates, a ready made module that does everything you need.&lt;/p&gt;
&lt;p&gt;For short texts you could use the (already mentioned) &quot;here-document&quot; approach, but that&#039;s not very flexible &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Jul 2000 09:55:03 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1068077 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-witghout-print-whatevern#comment-1068041</link>
    <description> &lt;p&gt;I see two answers to your question:  1) A different &quot;method,&quot; or 2) a template system.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Answer One:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Try using print qq| |;  Using that will make it so you don&#039;t have to exscape the &quot; or other such characters.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;print qq|&amp;lt;html&amp;gt;&lt;br /&gt; &amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;title&amp;gt;My Title&amp;lt;/title&amp;gt;&lt;br /&gt; &amp;lt;/head&amp;gt;&lt;br /&gt; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp; This is were I place the &amp;quot;body.&amp;quot;&lt;br /&gt; &amp;lt;/body&amp;gt;|;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;The only catch, you have to exscape a pipe |.  To do this, simply type &quot;\|&quot;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Answer Two:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can use a template.  Create a sub routine created &quot;build_html.&quot;  Example:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;sub build_html {&lt;br /&gt; local ($title, $body) = @_;&lt;br /&gt; print qq|&lt;br /&gt;&amp;nbsp; &amp;lt;html&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;$title&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $body&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/html&amp;gt;&lt;br /&gt; |;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;To use this, just call a subroutine with the $title and $body (or whatever variables ou want to you).  Example:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$title = qq|This is my web page&amp;#039;s title.|;&lt;br /&gt;$body = qq|This is my web page&amp;#039;s body content.|;&lt;br /&gt;&amp;amp;build_html($title, $body);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;If you wish for any help to customize answer two&#039;s colution to your site, don&#039;t hesitate to ask.  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Hope that helped.&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Jul 2000 02:10:59 +0000</pubDate>
 <dc:creator>richjb</dc:creator>
 <guid isPermaLink="false">comment 1068041 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/printing-witghout-print-whatevern#comment-1067976</link>
    <description> &lt;p&gt;Well you can always have the html file as an external text file.&lt;/p&gt;
&lt;p&gt;open FILE &quot;&amp;gt; html.txt&quot;;&lt;br /&gt;
@lines = ;&lt;br /&gt;
close FILE;&lt;/p&gt;
&lt;p&gt;foreach $line(@lines) {&lt;br /&gt;
print &quot;$line\n&quot;;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;or the way to print formatted html within your script...&lt;/p&gt;
&lt;p&gt;print &amp;gt;&amp;gt;&quot;HTML&quot;;&lt;/p&gt;
&lt;p&gt;HTML&lt;/p&gt;
&lt;p&gt;I don&#039;t know if the last part is correct. I can&#039;t find it on a website and I left my books at home. I can&#039;t test perl on this laptop neither...so try it out and if it don&#039;t work I am sure someone will correct my post, and I will change it when I get to my books.&lt;/p&gt;
&lt;p&gt;VulKen&lt;br /&gt;
&lt;strong&gt;Who&#039;s Bad&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 22 Jul 2000 20:07:55 +0000</pubDate>
 <dc:creator>Ken Elliott</dc:creator>
 <guid isPermaLink="false">comment 1067976 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
