There's more than one way to do things | |
PerlMonks |
Re: Re: Finding dictionary words in a string.by toma (Vicar) |
on Mar 14, 2004 at 05:58 UTC ( [id://336461]=note: print w/replies, xml ) | Need Help?? |
This is a great little program! I couldn't resist speeding it up a bit. A commonly used trick in search engines is to shift everything to upper case. Avoiding the i flag in the regular expression roughly doubles the speed, on my machine at least. I also used Storable to create a slightly faster-loading dictionary.
It should work perfectly the first time! - toma
In Section
Seekers of Perl Wisdom
|
|