Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Difference between array and a hash? (Newbie concerns)

by ikegami (Patriarch)
on Jul 30, 2009 at 03:11 UTC ( [id://784456]=note: print w/replies, xml ) Need Help??


in reply to Difference between array and a hash? (Newbie concerns)

Perl hashes are associative arrays. They're called hashes because they're implemented as hash tables.

If I understood correctly, you called $array = array(1, 2, 3, 4); an associative array. It's not. It's just an array (if that) because the values aren't associated with anything.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found