in fact foreach(keys %{$hasfromform1}){ : if($forma->{$_} eq $_){ : $hasfromform1 += $hasfromform2->{$_};
work when $hasfromform2 has 1 key only. But if I select more keys calculation is not ok! my $total = $hasfromform1 + $hasfromform2; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>