I'm using a text file to hold some information about files, like a mini-database (I know, I know). I'm trying to write a little sub-routine that will let the user enter 1, 2, OR 3 terms, and will return results arranged by relevence. Like m/($term1 AND $term2 AND $term3) then m/($term1 AND (term2 OR $term3)) then m/($term1 OR $term2 OR $term3), and so on. The examples I have found online, I feel are too robust for the scale I am attempting.
Having a hard time wrapping my head around the logic, especially since terms 2 and 3 are not required, and I don't want duplicate results. Near (like) matching would be nice too, but I would like to get the basics first. A nudge or gentle kick in the appropriate direction would be much appreciated. TIA
Because a thing seems difficult for you, do not think it impossible for anyone to accomplish.
Marcus Aurelius
Having a hard time wrapping my head around the logic, especially since terms 2 and 3 are not required, and I don't want duplicate results. Near (like) matching would be nice too, but I would like to get the basics first. A nudge or gentle kick in the appropriate direction would be much appreciated. TIA
Because a thing seems difficult for you, do not think it impossible for anyone to accomplish.
Marcus Aurelius