Scott E Robinson wrote: > > Okay, since i wasn't clear the first time, let me try again. Sorry, I'm > not a professional programmer, I'm a true beginner. > > LONG VERSION: > > I think John W. Krahn's post is very close to what I was actually asking. > John's solution showed me that the context of the problem may affect the > choice of solution, so let me explain the entire problem, in case someone > wants to look at the whole thing: > > I am comparing a "source" set of oil well names to a "target" set of oil > well names to find the closest matches. Each well name consists of two > parts: a name (like "McAffey" or "Idd El Shargi") and a number (like B-1). > I print out the 50 or so best-matching "target" names for each name in the > "source" list.
You might want to use this module to do what you want: http://search.cpan.org/author/JHI/String-Approx-3.19/ John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]