http://qs321.pair.com?node_id=11120316


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.