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