Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Search for identical substrings

by graff (Chancellor)
on Aug 17, 2005 at 23:12 UTC ( #484633=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $string[0] = "abc  fghijklmn ";
    $string[1] = " b d fgh jklmno";
    # correct answer  is: "jklmn", 5 chars long;
    # (next longest common substring is " fgh",
    #  but you're not interested in that)
    
  2. or download this
    #!/usr/bin/perl
    
    ...
        $currentMatch = "";
    #    warn "match ended at @_ : lm=$longestMatch=\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-03-01 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    On my keyboard, Caps lock is:








    Results (467 votes), past polls