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

Some small problems needs to be fixed. They're listed below, but I've updated the original as well (to do the impossible!).

1.

@this = @last; @last = ();
should be
@last = @this; @this = ();

2.

my @match = ( $$a1[$b1] );

should be removed.

3.

@{$a1}[ ($b1-$longest+1), $b1 ]

should be

@{$a1}[ ($b1-$longest+1) .. $b1 ]

4. The warning can safely be silenced.