GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
String::LCSS(3) User Contributed Perl Documentation String::LCSS(3)

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

This document refers to String::LCSS version 1.00.

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

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.

In scalar context, returns the substring.

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

The "lcss" function is exported by default.

There are no known bugs in this module.

String::LCSS_XS is not pure Perl, but it was created to be faster.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

The original author is Daniel Yacob (CPAN ID: DYACOB).

Gene Sullivan (gsullivan@cpan.org) is a co-maintainer.

Code provided by BrowserUk from PerlMonks.

2025-07-04 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.