Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by roboticus (Chancellor)
on Jul 30, 2009 at 02:04 UTC ( [id://784451]=note: print w/replies, xml ) Need Help??


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

reztlaf:

Actually, in perl it's pretty similar:

@array = ( 1, 2, 3, 4 ); %hash = ( red=>1, blue=>2, green=>3, yellow=>4 ); print join(" | ", reverse @array); print join(" | ", keys %hash);
...roboticus

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-16 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found