in reply to Maybe Escape in Dynamic RegExps
The simplest way would be to use the \Q and \E in the expression:
and it will do the right thing.$re= qr(/($<!\Q$a\E)\Q$b/);
/J\
|
---|
In Section
Seekers of Perl Wisdom
in reply to Maybe Escape in Dynamic RegExps
The simplest way would be to use the \Q and \E in the expression:
and it will do the right thing.$re= qr(/($<!\Q$a\E)\Q$b/);
/J\
|
---|