Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: How to build a hash?

by Jasper (Chaplain)
on Apr 25, 2005 at 12:31 UTC ( [id://451156]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @hash{'foo','bar','baz'} = (1,2,3);
    
  2. or download this
    %hash = ('foo',1,'bar',2'baz',3); # whole hash overwritten
    $hash{foo} = 1; # only one element created or modified
    @hash{@array} = (1,2,3); # only elements specified in @array overwritt
    +en, or created.
    

Log In?
Username:
Password:

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

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

    No recent polls found