<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000880" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000880</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/adding-more-info#comment-1003756</link>
    <description> &lt;p&gt;I&#039;m not sure your problem is as complicated as you might think... however, I do not like your choice of delimiter (the pipe symbol) as it requires extra work when splitting the database line into parts.&lt;/p&gt;
&lt;p&gt;Here&#039;s a simple little chunk of code; it assumes the db.txt file looks like so:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Code Sample:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;username:age:town:state&lt;br /&gt;username:age:town:state&lt;br /&gt;(etc.)&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;p&gt;Code Sample:&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;use Fcntl qw( LOCK_EX );&lt;br /&gt;open DB, &amp;quot;+&amp;amp;lt;db.txt&amp;quot; or&lt;br /&gt;&amp;nbsp; die &amp;quot;can&amp;#039;t open db.txt: $!&amp;quot;;&lt;br /&gt;flock DB, LOCK_EX;&lt;br /&gt;while (&amp;amp;lt;DB&amp;amp;gt; ) {&lt;br /&gt;&amp;nbsp; $user = (split /:/)[0];&lt;br /&gt;&amp;nbsp; $_ .= join &amp;quot;:&amp;quot;, &amp;quot;&amp;quot;, info($user);&lt;br /&gt;&amp;nbsp; push @db, $_;&lt;br /&gt;}&lt;br /&gt;seek DB, 0, 0;&lt;br /&gt;truncate DB, 0;&lt;br /&gt;print DB while defined($_ = shift @db);&lt;br /&gt;close DB;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The info() function returns a list of data regarding that specific user.  The reason there is an extra &quot;&quot; before the list returned by the info() function is so that there is a colon after the current db line, and THEN colons between the data returned be info().&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
--&lt;br /&gt;
MIDN 4/C PINYAN, NROTCURPI, USNR&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Dec 1999 15:24:00 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1003756 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
