Don't ask to ask, just ask | |
PerlMonks |
Re: Check word presence WITHOUT hashes or grepby bobf (Monsignor) |
on Apr 30, 2008 at 05:06 UTC ( [id://683620]=note: print w/replies, xml ) | Need Help?? |
Kudos for mentioning up front that this is a learning exercise. That makes the somewhat odd requirements less of a distraction. It also means that my suggestion will apply to your current approach rather than trying to change it. Since you've got the dictionary words alphabetized in an array, you could use a binary search to determine if a word in your corpus is in the array. You should be able to find some things around here on that pretty easily if you use Super Search and sprinkle with key words liberally. Good luck
In Section
Seekers of Perl Wisdom
|
|