On Sat, Nov 13, 2004 at 11:56:27AM +0000, Brian McCauley wrote: > David Nichol is not talking nonsense, he is right > > $foo =~ 'literal'; > > ...is correctly parsed as ... > > $foo =~ EXPR
Nope; if it were, it *would* be subject to needing use re "eval"; the problem is that currently $foo =~ 'literal'; is silently treated like $foo =~ /literal/; (except wrt qq-ishness). Same seems to apply to any constant (after folding). > The change you propose would be without doubt be retrograde. I think he realizes that. And given constant-folding, I don't think there can be a good way to preserve backward compatibility here (at least via the tokenizer).
