I have an easy question. I want to compare two strings to see if they are partially matching
My code:
Code:
$string = A4522-ITRZ;
$search_string = "A4522";
if ($string =~ /$search_string/) {
print "$string";
}
The current code doesn't work ? Can anyone tell me why.
Thanks