Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Search for identical substrings

by graff (Chancellor)
on Aug 17, 2005 at 23:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://484633]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-29 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found