in reply to Re: how to get the String as regularexpression
in thread how to get the String as regularexpression
qr// doesn't change the way that the string is interpolated into a regex - it simply precompiles the string into a regex (see the documentation).
Using qr// with the code from the original post won't fix the problem. You have fixed the problem by dropping the spurious '|' from the start of the regex.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|