http://qs321.pair.com?node_id=690627


in reply to Re: LCS efficiency problem
in thread LCS efficiency problem

Starting with 1 is part of the dynamic programming algorithm, no bug.
my @S = (undef, map { lc } split(/\w+/, $s));
should fix the wordlists (so that eq is enough). Further filtering as suggested below is a good idea, do that!