I suppose you are aware of quotemeta function, which you could use for the same effect of \Qpattern\E something like (one of many variations) ...
my @patterns = map { quotemeta $_ } @string
In any case, as the Gory details says, be aware of what happens with [$@] in \Q (or quotemeta) including other meta characters.
In reply to Re^3: /x modifier with \Q and \E
by parv
in thread /x modifier with \Q and \E
by wardy3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |