in reply to Re: Substitution with regex and memory consumption
in thread Substitution with regex and memory consumption
Okay, thank you! Some assumptions, please correct me if i'm wrong:
So, before 5.20 we have choice: avoid $&, $`, $' and use /p modifier to explicitly copy ${^*MATCH}. Now we can use $&, $`, $', m// don't suffer from PL_sawampersand anymore, but s/// will always copy original string, PL_sawampersand state doesn't matter, and nothing we can do with that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Substitution with regex and memory consumption
by dave_the_m (Monsignor) on Mar 01, 2020 at 22:47 UTC | |
by k-mx (Scribe) on Mar 08, 2020 at 08:16 UTC | |
by dave_the_m (Monsignor) on Mar 08, 2020 at 11:51 UTC |