in reply to unable to store keys and values in hash when "keys" are passed at runtime
my %_attack; foreach (...) { $attack{$id} = ...; } [download]