Well, my search script currently parses the main directory and all its sub-directories for html files and then uses regular _expression_ to match the words user has entered for the search
open(IFP, $File::Find::name) or print "Search error $! :$fname <br>"; # only if html file my $string = <IFP>; close(OFP);
return unless ($string =~ /\Q$keywords\E/i); if ($string =~ /<title>(.*?)<\/title>/is) { $page_title = $1; }
I have a feeling that this is not the most efficient way of searching for all files that contain the words the user entered in his search criteria. And it is also very slow.
So I am looking for some code examples or modules I can use for the search engine so that it will be a faster.
Thanks --Sheetal x.51226
-----Original Message-----
could u pls explain in little detail
============================================================================== |
_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs