You appear to be looking for a
word-by-word diff utility. Googling for it gives me few results, there appears to have been at one time such a
utlility in Perl, but the domain name has dropped off the earth.
It appears to be quite popular for wikis, and a popular implementation seems to be the diff utility from Wikipedia, available in the MediaWiki package.
GNU wdiff, as suggested in one of the pages I linked to above, seems to be using quite a crude methodology.
Now if you want to try building an implementation using Algorithm::Diff, then I'd first try doing a crude diff using a line by line comparison, and once you pinpointed the differences in lines, split these lines into components (words, punctuation, optionally whitespace too) and diff again between the word lists.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.