if (/(\b.+\b) \1/) { print "Found $1 repeated\n"; }