<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001101" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001101</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/print-if-not-empty#comment-1004813</link>
    <description> &lt;p&gt;If you just want to skip the empty lines, you can try the following code:&lt;/p&gt;
&lt;p&gt;open (TEXTFILE, &quot;../textfile.txt&quot;);&lt;br /&gt;
@doc = &amp;lt;TEXTFILE&amp;gt;;&lt;br /&gt;
close (TEXTFILE);&lt;br /&gt;
foreach (@doc){&lt;br /&gt;
  unless (/^\n$/){print &quot;$item\n&quot;}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;[This message has been edited by hcshim (edited 18 May 2000).]&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 May 2000 21:42:00 +0000</pubDate>
 <dc:creator>hcshim</dc:creator>
 <guid isPermaLink="false">comment 1004813 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/print-if-not-empty#comment-1004812</link>
    <description> &lt;p&gt;Lets say that when you  went&lt;br /&gt;
@array = &amp;lt;IN&amp;gt;; , @array was&lt;br /&gt;
@array = (&quot;hello&quot;,&quot;&quot;,&quot;how&quot;,&quot;&quot;,&quot;are&quot;,&quot;&quot;,&quot;you&quot;);&lt;/p&gt;
&lt;p&gt;Use the following code to only print the lines that are not empty.&lt;br /&gt;
&lt;BLOCKQUOTE&gt;code:&lt;/blockquote&gt;&lt;/p&gt;
&lt;pre&gt;
@array = (&quot;hello&quot;,&quot;&quot;,&quot;how&quot;,&quot;&quot;,&quot;are&quot;,&quot;&quot;,&quot;you&quot;);

foreach (@array)
{
	if($_)
	{
		print $_ , &quot;\n&quot;;
	}
}
[/code]
The output of this would be:
hello
how
are
you

Hope that helps a little.

------------------
&lt;a href=&quot;http://www.thehungersite.com&quot; class=&quot;bb-url&quot;&gt;click here to help save lives&lt;/a&gt;
&lt;a href=&quot;http://www.wiredstart.com&quot; class=&quot;bb-url&quot;&gt;http://www.wiredstart.com&lt;/a&gt;  : The Technology Start Page

[This message has been edited by robp (edited 14 May 2000).] &lt;/pre&gt;</description>
     <pubDate>Sun, 14 May 2000 17:14:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004812 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
