On Tue, Apr 19, 2005 at 12:02:45AM +0300, Roie Marianer wrote:
: But rx:P5// should act like qr//, shouldn't it?
Yes.
: LW> I suspect we can check after the $ for ), ], |, #, whitespace, or the
: LW> terminator, which rules out direct use of $/ inside /.../.
: I'll add a flag for that in rx:P5. I
er this:
AT>
AT> rx/abc$/
AT> qq/abc$/
AT> After roie's refactoring, both now breaks, whilst in Perl 5, only
Actually, it wasn't due to my refactoring. It was because I tried to implement
the rule above, which meant getting rid of the special case (which was
presen
for its own termination.
:
: Consider this:
:
: rx/abc$/
: qq/abc$/
:
: After roie's refactoring, both now breaks, whilst in Perl 5, only
: the latter break -- qr/abc$/ is just fine. Is it something we need
: to special-case for rx?
Certainly. rx// does not do any kind of interpolation
. Therefore these are errors:
>
> qq. $foo.bar() .
> qq: @foo::bar[] :
>
> However
>
> qq/ &foobar( $a / $b ) /
>
> is just fine, since (...) is looking for its own termination.
Consider this:
rx/abc$/
qq/abc$/
After roie's refactor