Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 browsing the Monastery: (9)
As of 2015-07-29 05:45 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 (260 votes), past polls