in reply to Re: Compare String within an Array
in thread Compare String within an Array

Thanks much Dave, thats a wonderful piece of information.

Replies are listed 'Best First'.
Re^3: Compare String within an Array
by davido (Cardinal) on Aug 01, 2012 at 07:27 UTC

    Your question got me digging again into my copy of Mastering Algorithms with Perl. I've heard it said that the book is getting dated, and that it is a little out of sync with the "best practices" of 2012. But algorithms themselves never really go out of style, and I still find it to be an excellent resource as long as you keep in mind that the algorithms are sound, but their implementations might deserve some Perlish modernization. I first read it around 2003-2004, but seldom a month passes that I don't refer back to it for one thing or another.

    Chapter nine of the book has a section called "String-Matching Algorithms". If you're in a Perl shop, someone in the office surely has a copy of this book. And if not, find a used copy on Amazon or something. It's worth it. There are a number of string matching algorithms discussed in the chapter. Some of them are used for "exact" matches, and some for "approximate".

    The next section in the same chapter discusses phonetic algorithms such as what is implemented by Text::Soundex. It also mentions Schwern's (at the time experimental) Text::Metaphone. I see that more recent releases of that module are no longer considered experimental.

    The book gives a lot to chew on.


    Dave

      That’s Awesome Dave; I’m going thru chapter 9 now. Hopefully I’ll find the best module or algorithm here.