in reply to Re: match with symbol
in thread match with symbol

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