in reply to Re: Throw compilation error(or warning) if duplicate keys are present in hash
in thread Throw compilation error(or warning) if duplicate keys are present in hash

%hash = EXPR;
does something like
my @anon = LIST; %hash = (); while (@anon) { my $k = shift(@anon); my $v = shift(@anon); $hash{$k} = $v; }

So if you have two values for the same key, the latter prevails.

(There's no actual @anon created; the stack is used.)