$SearchInHere =~ /\Q$Name\E/, see also quotemeta
In reply to Re: Stop variable expansion by haukex in thread Stop variable expansion by Anonymous Monk