The previous answer shows how to start to address the problem raised, but I get the impression that the question which has been asked is the wrong question.
Does the hash contain these 'thousands of words' as a key or a value? It would have been useful if the original question could have contained a small hash showing the data layout.
Perhaps the real question should explain why you have such a hash and why you're looking for string matches?
In reply to Re^2: String Search
by space_monk
in thread String Search
by Sishanth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |