in reply to adding to hashes
my %A = (a => "A", b => "B"); my %B = (b => "A"); my %C = (%A, %B); print "$_ => $C{$_}\n" foreach keys %C; [download]