in reply to What is the difference between a list and an array?
Washington, Lincoln, Jefferson is a list.
@streets = (Washington, Lincoln, Jefferson) or @presidents = (Washington, Lincoln, Jefferson) make the list an array.
I've always thought of lists as an unnamed group of items whereas an array is a named group of items.
Does someone have any other elaborations for this?
|
---|