Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Adding values from an array to a hash

by reneeb (Chaplain)
on Oct 12, 2006 at 11:27 UTC ( #577812=note: print w/ replies, xml ) Need Help??


in reply to Adding values from an array to a hash

You can do this:
@locations{@locations} = (1) x scalar @locations


Comment on Re: Adding values from an array to a hash
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2015-07-03 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (49 votes), past polls