in reply to Find common substrings

The String::LCSS_XS module may be a good starting place. Using “super search” for “longest common substring” should also return maybe useful prior threads.

The cake is a lie.
The cake is a lie.
The cake is a lie.