crca
11-14-2002, 09:26 PM
I am finishing my serch engine.
I need to ask this:
I have text on the page that says "*YT*" I would like to replace this with "NOT FOUND" but how do I do It?
I sofar have:
open (FILE, "dafile");
@LINES=<FILE>;
close(FILE);
$#SIZE=@LINES;
for ($i = 0; $i < $#SIZE; $i++) {
@LINES[$i] =~ s/(\*YT\*)//isg;
print "<BR>@LINES[$i]";
}
But that will replace it with nothing!
Any help will do
I need to ask this:
I have text on the page that says "*YT*" I would like to replace this with "NOT FOUND" but how do I do It?
I sofar have:
open (FILE, "dafile");
@LINES=<FILE>;
close(FILE);
$#SIZE=@LINES;
for ($i = 0; $i < $#SIZE; $i++) {
@LINES[$i] =~ s/(\*YT\*)//isg;
print "<BR>@LINES[$i]";
}
But that will replace it with nothing!
Any help will do