Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to What is the difference between a list and an array?

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://131028]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-23 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found