Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: What is the difference between a list and an array?

by japhy (Canon)
on Dec 11, 2001 at 09:11 UTC ( [id://130865]=note: print w/replies, xml ) Need Help??


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

Ugh, sticky situation. I think my definition is that an array is a mutable list -- one that can have element insertions or deletions. The elements of a list are mutable (as in ($a,$b) = ($b,$a)) but the list itself is fixed. An array is a list that has operations available on it (such as "what is your size?" and "remove the last element").

Hashes are special -- there's no real non-hash hash-like structure in Perl that I can think of.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-29 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found