<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001142" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001142</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-searching-txt-file-newbie#comment-1004979</link>
    <description> &lt;p&gt;I have looked at them quit a few times It is very hard learning something that you can do 5 different ways. I have tried lots of differnt stuff however they either don&#039;t work or are not the results that I want. Anyway this is the code that I am using now. &lt;/p&gt;
&lt;p&gt;#####################################################&lt;br /&gt;
#               TxT Searcher v1.1                   #&lt;br /&gt;
#####################################################&lt;br /&gt;
#               By: Justin Congdon                  #&lt;br /&gt;
#                                                   #&lt;br /&gt;
#####################################################&lt;br /&gt;
print &quot;Please enter the file you want to search: &quot;;&lt;br /&gt;
    $path = &amp;lt;STDIN&amp;gt;;&lt;br /&gt;
    chomp $path;&lt;br /&gt;
open(PATH,$path) | | die &quot;Error couldn&#039;t open $path, Error&quot;;&lt;br /&gt;
    @Path = &amp;lt;PATH&amp;gt;;&lt;br /&gt;
print &quot;Please enter what you would like to search for: &quot;;&lt;br /&gt;
    $search = &amp;lt;STDIN&amp;gt;;&lt;br /&gt;
    chomp $search;&lt;br /&gt;
    $search =~ tr/A-Z/a-z/;&lt;br /&gt;
print &quot;Searching....\n&quot;;&lt;br /&gt;
@results = grep {/$search/} @Path;&lt;br /&gt;
foreach $List (@results){&lt;br /&gt;
    ($ip,$usr,$env,$y,$date,$when,$prox,$prox1,$****,$add,$ip1,$****1,$****2,$****3,$****4,$****5,$****6,$****7,$fadd,$type,$****8,$****9,$****10) = split(/,/,$List);&lt;br /&gt;
    print &quot;\nYour search found the following results:\n\n$usr |$add |$when |$date \n\n&quot; if ($List);&lt;br /&gt;
}&lt;br /&gt;
I formated the output some. But would like the results to look cleaner. I also need a if,else statment so if nothing is found in the file it will tell you instead of just going to the C prompt and if something is found it won&#039;t keep repeating (Your search found lalalala....)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;[This message has been edited by jleecong (edited 09 June 2000).]&lt;/p&gt;
&lt;p&gt;[This message has been edited by jleecong (edited 09 June 2000).]&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Jun 2000 17:22:00 +0000</pubDate>
 <dc:creator>jleecong</dc:creator>
 <guid isPermaLink="false">comment 1004979 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-searching-txt-file-newbie#comment-1004978</link>
    <description> &lt;p&gt;Read &lt;a href=&quot;http://www.cpan.org/doc/manual/html/pod/perlre.html&quot; class=&quot;bb-url&quot;&gt;http://www.cpan.org/doc/manual/html/pod/perlre.html&lt;/a&gt;  it&#039;s a good tutorial on regular expressions. Since your pretty new to Perl you probably don&#039;t know what those are so I &lt;strong&gt;really&lt;/strong&gt; suggest you read them.&lt;/p&gt;
 </description>
     <pubDate>Thu, 08 Jun 2000 17:05:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1004978 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
