Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 perusing the Monastery: (4)
As of 2014-12-18 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls