I am using a hacked version of Xav Indexed Search script and I was wondering how to search multiple databases. (I posted a comment about this in Xav Search Topic, but I thought I should create a new Topic that may be applicable to other CGI programs.)
Anyway, I would like to search multiple ASCII flat files that have the same structure.
Here are the codes that I have in place:
open (SECFILE, ">$Second_File")| | &Fatal;
foreach $LINE (<ALLFILE, SECFILE> ) {
******************************************
Relevance Codes
******************************************
}
close(ALLFILE);
close(SECFILE);
NOTE: I did not think it was necessary to post the relevancy codes I have between the open and close codes.
Anyone know how I can get this to work? When I search, the second file is ignored and I only get results from the first data file.
TIA
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
[This message has been edited by Eliot (edited July 08, 1999).]
[This message has been edited by Eliot (edited July 08, 1999).]
Anyway, I would like to search multiple ASCII flat files that have the same structure.
Here are the codes that I have in place:
Code:
open (ALLFILE, "<$Index_File") | | &Fatal; open (SECFILE, ">$Second_File")| | &Fatal;
foreach $LINE (<ALLFILE, SECFILE> ) {
******************************************
Relevance Codes
******************************************
}
close(ALLFILE);
close(SECFILE);
NOTE: I did not think it was necessary to post the relevancy codes I have between the open and close codes.
Anyone know how I can get this to work? When I search, the second file is ignored and I only get results from the first data file.
TIA
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
[This message has been edited by Eliot (edited July 08, 1999).]
[This message has been edited by Eliot (edited July 08, 1999).]

