I agree that the rules are a little confusing. Assuming AAAAAA should be deleted, then how about this.
#!/usr/bin/perl
use strict;
my @foo = ('AAAAAA', 'ATATAT', 'AATAAT');
foreach (@foo) {
print "$_\n" if substr($_,0,3) eq substr($_,3,6);
}
--
http://MyUniversityTutor.com