in reply to Re: (tye)Re: Trying to pass a hash of hash of lists
in thread Trying to pass a hash of hash of lists
Let me try again.
"List" is used to mean a lot of things in a lot of places. Above you are using "list" specifically to contrast arrays from other types of lists. That is fine and makes sense.
It is also perfectly valid to use "list" as a more generic term that includes arrays. Otherwise we'd have to update a ton of documentation and do s/list/list or array/. That would just make the documentation more confusing, IMO.
When you see the term "list" in relation to Perl, you need to figure out what it means in the context at hand. In talking about "list of lists", the term "lists" includes "arrays" and that can make such discussions much simpler and so easier to understand. There are places where it is important to distinguish "arrays" from "lists" but perllol.pod is not such a place.
I am well aware of what features the concept of "array" adds beyond the concept of "list of scalar values" and I've talked about that quite a bit several times before.
If you get some narrow definition of "list" stuck in your head such that you can only think of that definition when you see the word "list" used in relation to Perl, then you are going to run into a lot of people using other somewhat different or very different definitions of "list" in limited contexts.
I could rant at how wrong you are for using "array" when you can't put an array in an array. You can put references to arrays in an array. But it is a good thing to forget some complicating details from time to time and speak somewhat less precisely than is absolutely possible.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re2: Trying to pass a hash of hash of lists
by Juerd (Abbot) on Mar 14, 2002 at 18:57 UTC |