in reply to Re^4: Shouldn't references be readonly?
in thread Shouldn't LITERAL references be readonly? (updated)
Which of the following do you regard as a literal array:
I regard none of them as literal. [] {} are constructors; they are just syntactic sugar for a function which takes a list and returns a reference to an anonymous aggregate, e.g.[] [1,2,3] [1,2,$x]
[1,2,3] # is the same as anon_array(1,2,3); sub anon_array { my @a = @_; \@a }
Dave.
In Section
Seekers of Perl Wisdom