develooper Front page | perl.perl5.porters | Postings from June 2022

Re: Pre-RFC: s/.../.../gg Really globally substitute

Thread Previous | Thread Next
From:
"G.W. Haywood" via perl5-porters
Date:
June 29, 2022 13:50
Subject:
Re: Pre-RFC: s/.../.../gg Really globally substitute
Message ID:
1b7bd00-ff3d-718e-7acc-2ef40cf87f2@jubileegroup.co.uk
Hi there,

On Wed, 29 Jun 2022, James Raspass wrote:

> ...
> I feel like we could replace this pattern with a dedicated flag that
> is clearer and potentially faster, /gg, e.g.
>
> s/(\d)(\d\d\d)(?!\d)/$1,$2/gg;
> ...
> Thoughts?

I don't see any pressing need.

It would just be asking for problems.

I prefer it the way it is.

There are more important things to be getting on with.

-- 

73,
Ged.

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