http://www.perlmonks.org?node_id=812353


in reply to regular expression with @@/

I think your (very interesting!) problem has been solved several times already—the main points being that —so I'll just point out one thing that no one seems to have mentioned, which is that \Q/\E are a pair, and must should be used as such. Your sample code has only a \Q, although Perl seems forgivingly to assume the \E:
$ perl -E 'say my $rx = qr|\A(.+)\Q@@/|;' (?-xism:\A(.+)\@\@\/)
You may also be interested in the function, quotemeta, underlying the escape, which works fine on @.