Algorithm::Diff does it perfectly, and is flexible in the format of the output. The input is also flexible, because the elements of the arrays can be characters, graphemes, words, sentences, lines, paragraphs, pages, ...
See my example in the answer to BrowserUK
In reply to Re: Levenstein distance transcription
by wollmers
in thread Levenstein distance transcription
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |