http://www.perlmonks.org?node_id=11124610


in reply to Re^3: Concatenation with empty string -- good enough to force physical copy?
in thread Concatenation with empty string -- good enough to force physical copy?

You seem to have answered your own question. All kinds of weird things can happen, including modifying scalars you didn't intend to modify. You could even change what string literals return!

They don't force a copy; they force the scalar to contain a modifiable string. If that's already the case, they do nothing more than the non-force equivalents.

  • Comment on Re^4: Concatenation with empty string -- good enough to force physical copy?