On Mon, Sep 08, 2025 at 11:36:32AM +0200, Elizabeth Mattijsen wrote:
> The reason this doesn't work, is because  s:g/Hello/Hi/  requires a
> writeable $_, and the invocant of .&{  } is not writeable in this
> example.

AFAIR, there was also problems with the way I split the lines because
it changed priorities or was just not parsable.

> If you really like s/// syntax that much


not only I prefer the s!!! (with whatever separator syntax) but il like
the fact you can respect the left-to-right with .&{ } is super cool.

> why not use .subst(/Hello/, "Hi", :g)   instead?

my brain consider .subst(, "Hi", :g) as noise.  s/Hello/Hi/ is not
only faster to write/edit it's also less painful tu read but
I really need to refresh my skills so I can make better feedbacks.

-- 
Marc Chantreux

Attachment: signature.asc
Description: PGP signature

Reply via email to