in reply to Working of \Q in m//

See perlre, the entry for \Q. As the documentation says, it disable[s] pattern metacharacters till \E, which in your case means that the backslash retains its literal meaning instead of being used as a quoting character in a regular expression.