in reply to Re: Search string giving incorrect results
in thread Search string giving incorrect results
It's a little sploppy at this point, but I'm just trying to get valid results at this point, I'll clean it up later.my @dat_files = <$board_dir/*.dat>; $q = 0; foreach (@dat_files) { $number; $number = $_; $number =~ s/\/var\/www\/cgi-bin\/2930forum\/data\///g; $number =~ s/\.dat//g; open THREAD, "$_" or die "Can't open .dat file: $!"; $x = 0; while (<THREAD>) { $thread_data[$x] = $_; $x++; } close THREAD; foreach (@thread_data) { @details = split /\|/, $_; if ($details[4] =~ m/\Q$in{for}\E/i) { $found[$q] = $number; $q++; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Search string giving incorrect results
by dws (Chancellor) on Apr 17, 2002 at 21:00 UTC |