<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000952" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000952</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/multi-line-string-flat-file-db#comment-1004018</link>
    <description> &lt;p&gt;Ah, cool Malte.  Check out the PerlMonth.com web site -- that&#039;s where that column is.&lt;/p&gt;
&lt;p&gt;I&#039;m thinking of writing an article specifically on modifying the way data is input and output with the $/, $\, $&quot;, and $, variables.  Tentative title would be &quot;Funking it Up with the Punctuation Variables&quot; -- but something makes me think that&#039;ll have to be changed.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
--&lt;br /&gt;
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve&lt;/p&gt;
 </description>
     <pubDate>Fri, 04 Feb 2000 03:02:00 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1004018 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/multi-line-string-flat-file-db#comment-1004017</link>
    <description> &lt;p&gt;Japhy, I read your article about this on your homepage, so everything is fine.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Malte&lt;/p&gt;
 </description>
     <pubDate>Thu, 03 Feb 2000 22:41:00 +0000</pubDate>
 <dc:creator>Malte</dc:creator>
 <guid isPermaLink="false">comment 1004017 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/multi-line-string-flat-file-db#comment-1004016</link>
    <description> &lt;p&gt;Would this work for a database which contains more than one multi-line string in multiple rows and columns?&lt;/p&gt;
&lt;p&gt;Malte&lt;/p&gt;
 </description>
     <pubDate>Wed, 02 Feb 2000 23:06:00 +0000</pubDate>
 <dc:creator>Malte</dc:creator>
 <guid isPermaLink="false">comment 1004016 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/multi-line-string-flat-file-db#comment-1004015</link>
    <description> &lt;p&gt;You can use a line (or record) delimiter other than &quot;\n&quot; in your database.  The popular fortune program, for instance, uses %% between its &quot;records&quot;.  Here&#039;s a sample implementation:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
open FILE, &quot;filename&quot;;
{
  local $/ = &quot;\n%%\n&quot;;
  chomp($first = &amp;lt;FILE&amp;gt;);
}
close FILE;
[/code]

The chomp() function does NOT remove the trailing \n on a list of strings -- rather, it removes the trailing value of $/ on a list of strings (it is documented as such, but people think it just removes a trailing newline).

------------------
-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve &lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Wed, 02 Feb 2000 22:57:00 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1004015 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/multi-line-string-flat-file-db#comment-1004013</link>
    <description> &lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;whats the best way to save a multi line string in a flat file database.&lt;/p&gt;
&lt;p&gt;Do you have to do something like:&lt;br /&gt;
s/+(\n)/%linebreak%/g&lt;br /&gt;
and then undo the process when reading the file or what would work better?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Malte&lt;/p&gt;
 </description>
     <pubDate>Wed, 02 Feb 2000 16:25:00 +0000</pubDate>
 <dc:creator>Malte</dc:creator>
 <guid isPermaLink="false">comment 1004013 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
