######octothorp.es

#pattern-matching

  • Splitting Words in Perl

    https://justatheory.com/2005/09/perl-split-words

    I’ve created a new module, Text::WordDiff, now on its way to CPAN, to show the differences between two documents using words as tokens, rather than lines as Text::Diff does. I plan to use it in Bricolage to give people a change tracking-type view (as seen in word processors) comparing two versions of a document. Fortunately, Algorithm::Diff makes this extremely easy to do. My only real problem was figuring out how to tokenize a string into words

    Indexed 8/26/2025