in reply to Re: Style question: regex versus string builtin function
in thread Style question: regex versus string builtin function

a zero-width assertion like \Q

\Q isn't an assertion. It's like \U et al. and works in all interpolating quote operators. It's just that one almost always sees it with the regexp operators. An example:

print "\U\Qfoo.bar"; __END__ FOO\.BAR

lodin