Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by ikegami (Pope)
on Dec 03, 2020 at 23:12 UTC ( #11124610=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11124610]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2021-11-27 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?