R Rahul New member Dec 30, 2009 #1 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.
M martinthurn New member Jan 2, 2010 #2 my $line = q{SGFD^FS}; if ($line =~ m/FD\^FS/) { print "match!\n"; }