uhhh.... picky, but not intended as flamebait since I (and maybe somebody else also?) have told myself -- in language imprecise enough to cause me to spend hours doing the wrong thing -- that I wanted to do some particular thing that later proved not what I wanted at all.

Did the honorable seeker mean precisely "calculate the total number of matching words in a bunch of strings" or is the meaning more nearly encapsulated in the stated desire to find "strings (which) have high probabilities of being the same string" which is quite a different matter."

Writer continues:
"...perhaps the same information, told multiple ways. EX:
The quick brown fox jumped over the lazy dogs.
vs.
The quick brown dogs jumped over the lazy fox.

"Both strings say the same thing, but they would not generate a normal ($string1 eq $string2) match."

NO!!! both strings do NOT "say the same thing...." and the wirters next example - re the "very quick fox" - is indeed very similar to the "quick fox (who) jumped...." but not very similar to the "quick dogs (who) jumped...."

and ps: Previewed and previewed and previewed as recommended in tips... and reviewed permissable code, etc, but found no explanation of why interjections in quotes - when enclosed as square brackets -- come up as links to nodes?

In reply to Re: calculate matching words/sentence by Anonymous Monk
in thread calculate matching words/sentence by anocelot

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.