in reply to Shouldn't LITERAL references be readonly? (updated)
My take on this: "Literal references" don't exist in Perl, at least they don't appear in perldata. A literal reference would be something like ARRAY(0x557782f0a4c8), but you can't feed this to Perl.
The constructs {...} and [...] are anonymous, but not literals.
I fail to see a point in clobbering anonymous variables, but then I also fail to see why Perl should prevent it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Shouldn't references be readonly?
by LanX (Sage) on Aug 05, 2020 at 11:41 UTC | |
by dave_the_m (Monsignor) on Aug 05, 2020 at 17:33 UTC | |
by LanX (Sage) on Aug 05, 2020 at 17:56 UTC | |
by dave_the_m (Monsignor) on Aug 05, 2020 at 18:32 UTC | |
by LanX (Sage) on Aug 05, 2020 at 18:44 UTC | |
by LanX (Sage) on Aug 05, 2020 at 20:29 UTC | |
| |
by LanX (Sage) on Aug 05, 2020 at 18:30 UTC | |
by dave_the_m (Monsignor) on Aug 05, 2020 at 18:38 UTC | |
by LanX (Sage) on Aug 05, 2020 at 18:51 UTC | |
| |
by haj (Priest) on Aug 05, 2020 at 14:59 UTC | |
by LanX (Sage) on Aug 05, 2020 at 15:54 UTC | |
by haj (Priest) on Aug 05, 2020 at 17:58 UTC | |
by LanX (Sage) on Aug 05, 2020 at 18:03 UTC | |
| |
by jo37 (Chaplain) on Aug 05, 2020 at 18:11 UTC | |
by LanX (Sage) on Aug 05, 2020 at 18:20 UTC | |
|
In Section
Seekers of Perl Wisdom