See perlre, or perlretut, or quotemeta or perlop on \Q...\E.
In reply to Re: Substitution for braces by Corion in thread Substitution for braces by gem555