in reply to Perl substitute with the nth match

THank-you all very helpful replies. This is one of those rare times using the swiss-army-knife that is Perl was missing the exact blade I need!

Replies are listed 'Best First'.
Re^2: Perl substitute with the nth match
by hippo (Archbishop) on Jan 12, 2023 at 09:28 UTC

    It isn't missing the blade. The blade is /e and you've just chosen not to use it for some undeclared reason.


    🦛