Re: rx/abc$/

2005-04-18 Thread Larry Wall
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

Re: rx/abc$/

2005-04-18 Thread Roie Marianer
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

Re: rx/abc$/

2005-04-18 Thread Larry Wall
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

rx/abc$/

2005-04-18 Thread Autrijus Tang
. 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