> following string is a pattern, would get messy, eg
>
> $foo =~ ("abc\b" . bar("baz"))
>
> where baz mustn't be treated as a regex string. For that matter, "abc\b"
> must still have the \b converted to a bell char rather than being left
> untouched for the regex engine. Very messy.
$foo =~ EXPR
is supposed to mean
{
my $regextext = EXPR;
my $regex = qr/$regextext/;
$foo =~ m/$regex/;
}
right?
> So, should I break the behaviour of (?{}) in single-quoted strings,
> or is there another way?
>
> Dave.
rewrite, add temporaries as needed.
--
David L Nicol
"It's what God and Dwight Eisenhower intended,
and it's what I use today." -- Gerald Combs