Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by ikegami (Patriarch)
on Dec 03, 2020 at 23:12 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (11)
As of 2024-04-19 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found