Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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
        $currentMatch = "";
    #    warn "match ended at @_ : lm=$longestMatch=\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://484633]
Discipulus if thezip is still around can be interested into How to hide/inhibit the console window when launching a Perl script on Windows?
[Corion]: sierpinski: Yes, but I don't want to write Javascript in a more involved way ;)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-03-27 19:17 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.