in reply to text string approxiamtions (concept for review)
You may want to have a look at Tie::Hash::Approx and Tie::Hash::Regex. I'm not sure whether the latter is faster than a manual loop, but it might be worth a try.
Hope this helps, -gjb-