develooper Front page | perl.perl6.users | Postings from June 2019

Re: replace s///r ?

Thread Previous | Thread Next
From:
Marc Chantreux
Date:
June 11, 2019 14:40
Subject:
Re: replace s///r ?
Message ID:
20190611144004.GB18946@prometheus.u-strasbg.fr
hello,

On Tue, Jun 11, 2019 at 08:26:11AM -0500, Brad Gilbert wrote:
> The /r modifier on s/// in Perl5 is S/// in Perl6.

oops .. it was the section just after s/// :( thanks for pointing out.

> Though you have to put it into a block lambda, otherwise it applies to
> $_ before it gets a chance to be passed to map.

this is very kind to let perl5 win sometimes :)

regards
marc

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About