No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
They are all literal reference constructors the content is mutable.
Please compare the analogue situation in JS where [] and {} explicitly documented as "literal".° See also Readonly which makes the explicit distinction about overwriting a variable holding an array and protecting the deep content.
Cheers Rolf
UPDATE°) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Array
In reply to Re^6: Shouldn't references be readonly? (updated)
by LanX
|
|