I can't figure out why the following does not work.
I would expect that it would not match because the string has a A in it. But it DOES match. Can someone explain this to me?
When I remove the carrot (^), than it also matches. Which I expect because the string contains a "A".
When I change the "A" to a "X", it doesn't match anymore, as expected.
Thanks,
Jesse
Code:
if('CCTAGG' =~ /[^A]/) {
print "match";
}
I would expect that it would not match because the string has a A in it. But it DOES match. Can someone explain this to me?
When I remove the carrot (^), than it also matches. Which I expect because the string contains a "A".
When I change the "A" to a "X", it doesn't match anymore, as expected.
Thanks,
Jesse