in reply to searching a text file

Not sure if this is your problem altogether since I haven't tested the code, but the lines...
if($b[$x]=="***Begin $subject"){ while ($b[$x]!="***Begin Here***\n"){
s/b
if($b[$x] eq "***Begin $subject"){ while ($b[$x] ne "***Begin Here***\n"){
When you are comparing strings, eq and ne are the operators. Numeric operators are == and !=.

Again, I'm not totally sure this is your full problem, but I know when searching strings, == and != will give you unpredictable results.

Also, if your line will not always be the exact same string... ***Begin $subject Then you might want to try a regex...
if($b[$x] =~ /\*\*\*Begin $subject/){
Good luck.

Replies are listed 'Best First'.
Re: Re: searching a text file
by JJ004 (Initiate) on Oct 23, 2001 at 08:27 UTC
    alas no I implemented the changes you suggested, and although good, I still get no output on the new page, in between the sentences "this is what I'm looking for" and "all done" But I greatly appreciate the effort