Re: [svn:perl6-synopsis] r12875 - doc/trunk/design/syn

2006-10-10 Thread Larry Wall
On Tue, Oct 10, 2006 at 02:17:50PM -0700, Larry Wall wrote: : $str ~~ s(/pat) = "replacement"; Er, cut-n-paste error. Make that: $str ~~ s[pat] = "replacement"; Larry

Re: [svn:perl6-synopsis] r12875 - doc/trunk/design/syn

2006-10-10 Thread Larry Wall
On Tue, Oct 10, 2006 at 10:49:11PM +0200, Juerd wrote: : [EMAIL PROTECTED] skribis 2006-10-09 0:22 (-0700): : > P5's s[pat][repl] syntax is dead, now use s[pat] = "repl" : : Why keep the s? Because @Larry felt it was better to keep the intent out in front. : substr works perfectly as both rvalu

Re: [svn:perl6-synopsis] r12875 - doc/trunk/design/syn

2006-10-10 Thread Juerd
[EMAIL PROTECTED] skribis 2006-10-09 0:22 (-0700): > P5's s[pat][repl] syntax is dead, now use s[pat] = "repl" Why keep the s? substr works perfectly as both rvalue and lvalue, and I think m[], also known as //, can do the same. No need to do things based on delimiter (bracket versus non-bracket

[svn:perl6-synopsis] r12875 - doc/trunk/design/syn

2006-10-09 Thread larry
Author: larry Date: Mon Oct 9 00:22:24 2006 New Revision: 12875 Modified: doc/trunk/design/syn/S05.pod Log: P5's s[pat][repl] syntax is dead, now use s[pat] = "repl" Modified: doc/trunk/design/syn/S05.pod == --- doc