in reply to Re: Testing if a string is a substring
in thread Testing if a string is a substring

I wouldn't use a regex for this, there aren't any patterns, just plain old string matching
my $super = 'AAAAATT'; my $sub = 'AT'; print "1\n" if (index($super, $sub) != -1);
---
my name's not Keith, and I'm not reasonable.