Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Longest Common Substring

by Enlil (Parson)
on Apr 09, 2003 at 19:15 UTC ( #249362=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $needle = 'i pushed the lazy dog into a creek, the quick brown fox 
    +told me to';
    my $haystack = 'the quick brown fox jumps over the lazy dog';
    
  2. or download this
    require String::LCSS;
    my $needle = 'i pushed the lazy dog into a creek, the quick brown fox 
    +told me to';
    my $haystack = 'the quick brown fox jumps over the lazy dog';
    my $longest = String::LCSS::lcss ( $needle, $haystack );
    print $longest, "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://249362]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2023-02-01 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (10 votes). Check out past polls.

    Notices?