How do i search a substring consisting of ^ ina string in perl?

Rahul

New member
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.
 
Back
Top