Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 chanting in the Monastery: (11)
As of 2014-09-30 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (383 votes), past polls