#!/usr/bin/perl

print "Wort1: ";
$a=;
chomp ($a);

print "Wort2: ";
$b=;
chomp ($b);

if ("$a $b" =~ /^(\w+?)(\w+) \2(\w+)$/ ) {
	print "$2 überlappt in $1-$2-$3\n";
}
Fr Jul 30 13:54:24 CEST 2021
patent_button.gif valid-html401.png elektra.jpg fsfe-logo.png valid-css.png vim.gif anybrowser.gif