in reply to Re: List context or not?
in thread List context or not?
assigns the entire list value to array @stuff, but:@stuff = ("one", "two", "three");assigns only the value three to variable $stuff.$stuff = ("one", "two", "three");
So contrary to what I had thought a list is not an array. It is sort of a proto-array, a thingy that one might likely turn into an array but is not there yet.
There is also something called a reference to an anonymous array. One creates it using brackets as in:
Since lists are comma-separated lists of values the text inside the brackets above is an example of an anonymous array which is also a list. However, lists are not in general arrays, they have to be assigned to arrays.$arrayref = ["one", "two", "three"];
|
|---|