![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^6: Shouldn't references be readonly? (updated)by LanX (Sage) |
on Aug 05, 2020 at 18:51 UTC ( #11120343=note: 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 Section
Seekers of Perl Wisdom
|
|