Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 imbibing at the Monastery: (8)
As of 2014-08-30 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls