$var='/Sample + Design'; $var1='/Sample + Design'; if (($var1=~/$var/)) { print "Yes"; } [download]
In reply to match with symbol by Selvakumar