"be consistent" | |
PerlMonks |
Re^8: Executing functions from another processby BrowserUk (Patriarch) |
on Jan 24, 2014 at 15:37 UTC ( [id://1071955]=note: print w/replies, xml ) | Need Help?? |
The problem happens on the last line which errors out with Modification of a read-only value. Why is this the case? Because the combination of the dump + eval equates to:
Which means that $newD[ 2 ] is assigned a reference to the string literal "two"; and when you indirect through that reference, you are trying to modify that string literal. With the other two elements of the array, new variables are created which are initialised to read-write copies of the string literals. 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.
In Section
Seekers of Perl Wisdom
|
|