http://qs321.pair.com?node_id=469429


in reply to Re: One line assigment statement with regex match
in thread One line assigment statement with regex match

I get search pattern not terminated when I try this:
my $re = qr/(?:${\( join "|", map { qr/\Q$_\E/ } @terms )})/;