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


in reply to Re: Feature Idea: qr//e
in thread Feature Idea: qr//e (updated with solutions)

    my $regex = qr/$_/ for join '|', map quotemeta, qw/. | %/;

(untested from mobile)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!