foreach my $id ($doc->getElementsByTagName('attack')){ %_attack = ($id => { 'severity' => '0' 'category' => '1' }, ); } [download]
In reply to unable to store keys and values in hash when "keys" are passed at runtime by phemal