Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 about the Monastery: (10)
As of 2014-09-17 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (94 votes), past polls