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


in reply to Re^3: Shouldn't references be readonly? (updated)
in thread Shouldn't LITERAL references be readonly? (updated)

Ok, I'd like to contradict myself.

I'd actually be ok with making "unassigned" scalars read-only. That includes [...], $x.$y, <>, etc.

It might have performance implications, but they should be extremely tiny.

It would break some code (such as my @lines = map { chomp; } <>;), but I think the benefits might be larger.