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
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
[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
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