Dave Mitchell wrote:
On Fri, Nov 12, 2004 at 07:36:48PM -0600, David Nicol wrote:
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?
Please stop talking nonsense.
David Nichol is not talking nonsense, he is right
$foo =~ 'literal';
...is correctly parsed as ...
$foo =~ EXPR
The change you propose would be without doubt be retrograde.
The case of split() is somewhat less clear. But I think your change would be retrograde there too.
