http://qs1969.pair.com?node_id=78717


in reply to Comparing Strings

The String::Approx package can calculate the "edit distance" (number of edits to change one string to another).
use String::Approx 'adist'; $dist = adist("pattern", $input);