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


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

Perl doesn't have literal arrays. It has constructors which will create a reference to an anonymous array, where the elements of that array are initially assigned to by copying the values from a list which may or may not be literal. E.g.
$ar1 = [ 1,2,3 ]; $ar2 = [ 1,2,3,$four ];
Should @$ar1 and @$ar2 be treated differently, and if so, why?

Dave.