in reply to Re: assigning flat file dbs to arrays
in thread assigning flat file dbs to arrays
Here is where I need the premiumline search results from SIDX2 along with the resultline form SIDX.open (SIDX, "$data_dir/search.idx"); open (SIDX2, "$data_dir/search2.idx"); if ($file_locking ne "No"){flock (SIDX, LOCK_SH) or die "Can't set lo +ck for file: $data_dir/search.idx, $data_dir/search2.idx $!\n";} while (defined($line=<SIDX>) and ($premiumline=<SIDX2>)) { $sline = $line, $premiumline; foreach $kwr (@skeyw, @premiumkeyw) { if (($sline =~ /$kwr/i) and ($kwr ne "")) { $toadk = "true"; } } if ($toadk eq "true") {
$resultline[$icnt] = $line; $toadk = false; $icnt++; } } #if ($file_locking ne "No"){flock (CIT, LOCK_UN);} close (SIDX); close (SIDX2); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: assigning flat file dbs to arrays
by jarich (Curate) on Apr 27, 2004 at 06:15 UTC | |
by Dente (Acolyte) on Apr 28, 2004 at 13:34 UTC | |
by Dente (Acolyte) on Apr 28, 2004 at 21:13 UTC | |
by jarich (Curate) on Apr 29, 2004 at 03:22 UTC | |
by Dente (Acolyte) on May 03, 2004 at 23:32 UTC | |
by jarich (Curate) on May 05, 2004 at 00:41 UTC |