String::LCSS - Find The Longest Common Substring of Two Strings.


String-LCSS documentation  | view source Contained in the String-LCSS distribution.

Index


NAME

Top

String::LCSS - Find The Longest Common Substring of Two Strings.

SYNOPSIS

Top

  require String::LCSS;
  my $longest = String::LCSS::lcss ( "zyzxx", "abczyzefg" );
  print $longest, "\n";

  my @result = String::LCSS::lcss ( "zyzxx", "abczyzefg" );
  print "$result[0] ($result[1],$result[2])\n";

DESCRIPTION

Top

String::LCSS provides the function "lcss" to ferret out the longest common substring shared by two strings passed as arguments. undef is returned if the susbstring length is one char or less.

When used in an array context, lcss will returns the indexi of the match root in the two args.

COPYRIGHT

Top

BUGS

Top

None presently known.

AUTHOR

Top

Daniel Yacob, Yacob@EthiopiaOnline.Net


String-LCSS documentation  | view source Contained in the String-LCSS distribution.