Algorithm-LCS-XS
view release on metacpan or search on metacpan
@lines entry => [(increasing) list of matching indices]
=item callback(@lines)
Generates a closure capturing the object and line_map hash for @lines.
Most useful when computing multiple LCSs against a single file.
=item LCS(\@a,\@b)
Finds a Longest Common Subsequence, taking two arrayrefs as method
arguments. In scalar context the return value is the length of the
subsequence. In list context it yields a list of corresponding
indices, which are represented by 2-element array refs. See the
L<Algorithm::Diff> manpage for more details.
=back
=head2 EXPORT
ADLCS() and LCSidx(). See Algorithm::Diff for the APIs.
( run in 0.518 second using v1.01-cache-2.11-cpan-65fba6d93b7 )