Just another Perl shrine | |
PerlMonks |
Re^6: Shouldn't references be readonly?by LanX (Saint) |
on Aug 05, 2020 at 18:44 UTC ( [id://11120342]=note: print w/replies, xml ) | Need Help?? |
My complaint is primarily about aliases, where I don't understand why Perl complains about when overwriting an alias to 1 but not one to [ 1,2,3,$x] (see examples in my OP especially the update) Both are literal constructs unbound to any named variable. I'm NOT saying that anonymous arrays -ie the content - should be immutable, but their reference.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|