<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000681" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000681</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/deleting-delete-line-text-txt-file#comment-1002959</link>
    <description> &lt;p&gt;of course it doesn&#039;t work, smileys are not parsed by perl! &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;br /&gt;
serios now, it is probably a line-feed problem, try this:&lt;/p&gt;
&lt;p&gt;$search_string = &amp;quot;$sitename\n&amp;quot;;&lt;/p&gt;
&lt;p&gt;cu&lt;br /&gt;
patrick&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
&lt;a href=&quot;http://www.allcgi.de&quot; title=&quot;http://www.allcgi.de&quot;&gt;http://www.allcgi.de&lt;/a&gt;&lt;br /&gt;
not quite up yet, but see if you can find something for you!&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jun 1999 01:52:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1002959 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/deleting-delete-line-text-txt-file#comment-1002958</link>
    <description> &lt;p&gt;Hi-&lt;br /&gt;
I tried out the code, but it did not delete the line of text that was searched for. Here&#039;s what I used:&lt;/p&gt;
&lt;p&gt;open(FILE, &#039;$sites&#039;) or&lt;br /&gt;
 die(&amp;quot;Couldn&#039;t open database, sorry&amp;quot;);&lt;br /&gt;
@lines = &amp;lt;FILE&amp;gt;;&lt;br /&gt;
close(FILE);&lt;br /&gt;
$search_string = &amp;quot;$sitename&amp;quot;;&lt;br /&gt;
open(FILE, &#039;&amp;gt;$sites&#039;) or&lt;br /&gt;
 die(&amp;quot;Sorry, couldn&#039;t open&amp;quot;);&lt;br /&gt;
foreach $line (@lines) {&lt;br /&gt;
if (!$line ne $search_string){&lt;br /&gt;
print FILE &amp;quot;$line\n&amp;quot;;}&lt;br /&gt;
}&lt;br /&gt;
close(FILE);&lt;/p&gt;
&lt;p&gt;Any ideas would be great! Thanks! &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;----------&lt;br /&gt;
Casey Hansen&lt;br /&gt;
&lt;a href=&quot;http://www.caseynet.com&quot; title=&quot;www.caseynet.com&quot;&gt;www.caseynet.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jun 1999 01:00:00 +0000</pubDate>
 <dc:creator>Fazer84</dc:creator>
 <guid isPermaLink="false">comment 1002958 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/deleting-delete-line-text-txt-file#comment-1002957</link>
    <description> &lt;p&gt;Hi-&lt;br /&gt;
Thank you for the help! I&#039;ll give it a go......&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
Casey Hansen&lt;br /&gt;
&lt;a href=&quot;http://www.caseynet.com&quot; title=&quot;www.caseynet.com&quot;&gt;www.caseynet.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jun 1999 00:29:00 +0000</pubDate>
 <dc:creator>Fazer84</dc:creator>
 <guid isPermaLink="false">comment 1002957 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/deleting-delete-line-text-txt-file#comment-1002956</link>
    <description> &lt;p&gt;Just in case you are not familiar with this problem:&lt;br /&gt;
- each smiley replaces the &#039;:&#039; and the &#039;)&#039; characters.&lt;br /&gt;
JP&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
The Webmaster Promotion and Resource Center.&lt;br /&gt;
&lt;a href=&quot;http://www.what-next.com&quot; class=&quot;bb-url&quot;&gt;http://www.what-next.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 22 Jun 1999 22:35:00 +0000</pubDate>
 <dc:creator>JP Stones</dc:creator>
 <guid isPermaLink="false">comment 1002956 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/deleting-delete-line-text-txt-file#comment-1002955</link>
    <description> &lt;p&gt;open(FILE, &#039;file.txt&#039;)die(&amp;quot;error&amp;quot;);&lt;br /&gt;
@lines = &amp;lt;FILE&amp;gt;;&lt;br /&gt;
close(FILE);&lt;br /&gt;
$search_string = &amp;quot;Searching for&amp;quot;;&lt;/p&gt;
&lt;p&gt;open(FILE, &#039;&amp;gt;file.txt&#039;)die(&amp;quot;error&amp;quot;);&lt;br /&gt;
foreach $line (@lines){&lt;br /&gt;
if (!$line ne $search_string){&lt;br /&gt;
print FILE &amp;quot;$line\n&amp;quot;;}&lt;br /&gt;
}&lt;br /&gt;
close(FILE);&lt;br /&gt;
print &amp;quot;done&amp;quot;;&lt;/p&gt;
&lt;p&gt;*Excuse the smilies*&lt;/p&gt;
&lt;p&gt;That&#039;s about it... (correct me if I&#039;m wrong)&lt;/p&gt;
 </description>
     <pubDate>Tue, 22 Jun 1999 19:11:00 +0000</pubDate>
 <dc:creator>amaring</dc:creator>
 <guid isPermaLink="false">comment 1002955 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/deleting-delete-line-text-txt-file#comment-1002961</link>
    <description> &lt;p&gt;Oopss ... BT doesn&#039;t like pipes ...&lt;br /&gt;
add &amp;quot;or&amp;quot; (without commas) before &amp;quot;die $!&amp;quot;; (both)&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
wdresources&lt;br /&gt;
&lt;a href=&quot;http://www.wdresources.com&quot; class=&quot;bb-url&quot;&gt;http://www.wdresources.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 22 Jun 1999 18:50:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1002961 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/deleting-delete-line-text-txt-file#comment-1002960</link>
    <description> &lt;p&gt;Try this code:&lt;/p&gt;
&lt;p&gt;open(FILE, &#039;$sites&#039;) die $!;&lt;br /&gt;
@lines = &amp;lt;FILE&amp;gt;;&lt;br /&gt;
close(FILE);&lt;br /&gt;
$search_string = $sitename;&lt;br /&gt;
open(FILE, &#039;&amp;gt;$sites&#039;) die $!;&lt;br /&gt;
for (@lines) {&lt;br /&gt;
print FILE $line,&amp;quot;\n&amp;quot; unless $_ =~ /$search_string/;&lt;br /&gt;
}&lt;br /&gt;
close FILE;&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
wdresources&lt;br /&gt;
&lt;a href=&quot;http://www.wdresources.com&quot; class=&quot;bb-url&quot;&gt;http://www.wdresources.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 22 Jun 1999 18:49:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1002960 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
