<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1014895" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1014895</link>
    <description></description>
    <language>en</language>
          <item>
    <title>found it</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perlsubstitute#comment-1085912</link>
    <description> &lt;p&gt;i found what i was looking for in my perl cookbook (p. 7.&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/nerdy.png&quot; title=&quot;Cool&quot; alt=&quot;Cool&quot; class=&quot;smiley-content&quot; /&gt;:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;open (OLD, &amp;quot;&amp;lt; $file&amp;quot;);&lt;br /&gt;open (NEW, &amp;quot;&amp;gt; $tempfile&amp;quot;);&lt;br /&gt;while (&amp;lt;OLD&amp;gt;) {&lt;br /&gt;	$_ =~ s/\n/\r\n/sg;&lt;br /&gt;	print NEW $_;&lt;br /&gt;}&lt;br /&gt;close(OLD);&lt;br /&gt;close(NEW);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;that&#039;s what i love in perl: it&#039;s such a tiny piece of code... &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;
 </description>
     <pubDate>Wed, 25 Jul 2001 13:56:45 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1085912 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perlsubstitute#comment-1085861</link>
    <description> &lt;p&gt;seems reasonable.&lt;br /&gt;
BUT: how do i read only one line of the file?&lt;/p&gt;
 </description>
     <pubDate>Tue, 24 Jul 2001 07:17:01 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1085861 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perlsubstitute#comment-1085856</link>
    <description> &lt;p&gt;It&#039;s been a while since I did any Perl..&lt;/p&gt;
&lt;p&gt;Make a copy of the file.&lt;br /&gt;
Open the copy.&lt;br /&gt;
Open the original.&lt;br /&gt;
FOR LOOP&lt;br /&gt;
-Read line from copy.&lt;br /&gt;
-Make changes.&lt;br /&gt;
-Wite line to original.&lt;br /&gt;
END LOOP&lt;br /&gt;
Close the original.&lt;br /&gt;
Close the copy.&lt;br /&gt;
Delete the copy.&lt;/p&gt;
 </description>
     <pubDate>Tue, 24 Jul 2001 06:42:00 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1085856 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
