gugod/App-perlbrew — pull request #159 by juster (2011-10-30 02:01:12+00:00)
Title: Remove dependency on Text::Levenshtein module.

Creates an editdist sub instead of using Text::Levenshtein. The module is
a little funky and the algorithm is not hard to implement.

Adds t/11.editdist.t. This is more testing than Text::Levenshtein does.

I dislike the Text::Levenshtein module because it spews warnings when they are turned on. The warnings are turned on by the test harness with 'make test'. The module seems kind of crappy and short enough to implement the algorithm ourselves. The new editdist sub is 20 lines; three of which are comments.

My patch adds a dependency on List::Util for the use of the min() function. Maybe that is a little hypocritical in this situation and I should write a min() function...