<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001032" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001032</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sorting-question#comment-1004416</link>
    <description> &lt;p&gt;Thanks Stefan. That worked  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Steve Caponetto&lt;br /&gt;
&lt;a href=&quot;http://whz.net&quot; title=&quot;http://whz.net&quot;&gt;http://whz.net&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Mar 2000 05:28:00 +0000</pubDate>
 <dc:creator>whz</dc:creator>
 <guid isPermaLink="false">comment 1004416 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sorting-question#comment-1004415</link>
    <description> &lt;p&gt;The following code should do the job fine.&lt;/p&gt;
&lt;p&gt;  open (file,&quot;file.dat&quot;);&lt;br /&gt;
  @data = &amp;lt;file&amp;gt;;&lt;br /&gt;
  close(FILE);&lt;br /&gt;
  @data = sort @data;&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Mar 2000 05:06:00 +0000</pubDate>
 <dc:creator>Stefen Enns</dc:creator>
 <guid isPermaLink="false">comment 1004415 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sorting-question#comment-1004414</link>
    <description> &lt;p&gt;Ok, I realize I didn&#039;t explain what I wanted very well in my first post..&lt;/p&gt;
&lt;p&gt;Ok, The text file has a bunch of data in the form of &lt;/p&gt;
&lt;p&gt;name|url|comments|etc|etc...&lt;/p&gt;
&lt;p&gt;Then, I am going to be printing out each line of data in nicely formatted tables.  What I want to do is when I print out each line of data, I would like them to be printed on the screen in alphabetical order based upon the first data entry - the name.  How would I go about sorting these data entries in alphabetical order based upon the first &quot;name&quot; field?&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Steve Caponetto&lt;br /&gt;
&lt;a href=&quot;http://whz.net&quot; title=&quot;http://whz.net&quot;&gt;http://whz.net&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 21 Mar 2000 04:16:00 +0000</pubDate>
 <dc:creator>whz</dc:creator>
 <guid isPermaLink="false">comment 1004414 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sorting-question#comment-1004413</link>
    <description> &lt;p&gt;Are you just appending the new entry to the file?&lt;/p&gt;
&lt;p&gt;You could do somthing like this&lt;br /&gt;
&lt;BLOCKQUOTE&gt;code:&lt;/blockquote&gt;&lt;/p&gt;
&lt;pre&gt;
open(IN,&quot;file.txt&quot;) or die &quot;Cannot open file.txt $!&quot;;

@data = &amp;lt;IN&amp;gt;;
close(IN);

push( @data, $NEW_ENTRY);
@data = sort @data;

open(IN,&quot;&amp;gt;file.txt&quot;) or die &quot;Cannot open file.txt : $!&quot;;

print IN @data;

close(IN);

[/code]



------------------
Too many people on the internet lie. &lt;/pre&gt;</description>
     <pubDate>Mon, 20 Mar 2000 22:43:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004413 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
