M martinthurn New member Dec 4, 2009 #1 my $line = q{SGFD^FS}; if ($line =~ m/FD\^FS/) { print "match!\n"; }
R Rahul New member Dec 4, 2009 #2 I have a line = SGFD^FS . I want to find out if the string consists of FD^FS. I wrote $line =~ /FD\^FS/ but it does not work. $line =~ /\^FS/ works.
I have a line = SGFD^FS . I want to find out if the string consists of FD^FS. I wrote $line =~ /FD\^FS/ but it does not work. $line =~ /\^FS/ works.