http://www.perlmonks.org?node_id=289048


in reply to calculate matching words/sentence

Try also Text::PhraseDistance that:

... provides a way to compare two phrases and to give a measure of their proximity.