Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-07-25 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (222 votes). Check out past polls.