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.
Should @$ar1 and @$ar2 be treated differently, and if so, why?$ar1 = [ 1,2,3 ]; $ar2 = [ 1,2,3,$four ];
Dave.
|
---|
In Section
Seekers of Perl Wisdom