Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: unable to store keys and values in hash when "keys" are passed at runtime

by dorward (Curate)
on Feb 15, 2007 at 10:53 UTC ( #600180=note: print w/ replies, xml ) Need Help??


in reply to unable to store keys and values in hash when "keys" are passed at runtime

You're assigning a new list to the hash each time and overwriting whatever is there before.

my %_attack; foreach (...) { $attack{$id} = ...; }


Comment on Re: unable to store keys and values in hash when "keys" are passed at runtime
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-09-02 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls