Basically you're trying to defeat perl's copy-on-write optimisation. Concatting an empty string will currently do this, but there are no future guarantees. If you want your code to be robust you really need to handle this at the C level.
|Replies are listed 'Best First'.|
Re^2: Concatenation with empty string -- good enough to force physical copy?
by vr (Curate) on Dec 03, 2020 at 06:59 UTC