Perl-Sensitive Sunglasses | |
PerlMonks |
Re: What is the difference between a list and an array?by fmogavero (Monk) |
on Dec 11, 2001 at 23:55 UTC ( [id://131028]=note: print w/replies, xml ) | Need Help?? |
Excellent question! 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?
In Section
Meditations
|
|