A simple Perl question?

WHAT?

New member
I use regular expressions all of the time but this is stumping me. I have something like the the following:

$string = "gg|3345678|bb|AE839322331.1|";
$ref = "AYJFDSKOPWEROIUEJKFNVKSLOUWERJAH";

If I use a simple regular expression the program tells me that $string is found inside of $ref!

if($ref =~ m/$string/){
..... # the program will execute this code when it shouldn't!
}

Any advice would be very much appreciated
 
Back
Top