in reply to Intersecting Two Strings

if you're strings are large, you may want to look at Tree::Suffix, which is a binding to a c library, which will probably be faster.