|
|
| more useful options | |
| PerlMonks |
RE: RE: Re: Search Algorithmby tenfourty (Novice) |
| on Aug 10, 2000 at 19:49 UTC ( #27310=note: print w/ replies, xml ) | Need Help?? |
|
Thanks to you all for your replies, this was the first time I had posted to this list and I'm amazed at the fast response. I will typically be searching for around 200 keywords in up to 2000 files, I need to output in my log the name of the file, the number of occurences of keywords and then for each occurence of the keyword I need to print that line and the line number. I think that you are right that a regexp is not the best way to search a line and that for each line I should check for the occurence of each word in a hash, my search should not be case sensitive as well, are the keys in a hash case sensitive, and if so how do I get around this?
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||