Hey as said earlier in patternmatch the special character has different meaning, so we need to put backslash infront of those chars.
$var = '/Sample + Design';
$var1 = '\/Sample \+ Design';
if($var =~/$var1/) {
print "yes \n";
}
else{
print " No \n";
}
Thanks
claiming