Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Modification of a read-only value attempted

by BrowserUk (Pope)
on Nov 27, 2012 at 13:57 UTC ( #1005861=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Modification of a read-only value attempted
in thread Modification of a read-only value attempted

So why we can't change $c=1000?

As roboticus points out, you can make that change. That is, you can overwrite the value in $c -- currently the address of the constant 99 -- with any other value.

What you cannot do is overwrite the value held at the address held in $c, because it is a constant.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong


Comment on Re^3: Modification of a read-only value attempted
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-10-24 23:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (138 votes), past polls