--$ugum@r--my %one = ( "one" => 1, "two"=> 2, "three"=> 3, "four" =>4, "fice" => 5, ); my %two = ( "one" => A, "two"=> B, "iii"=> C, "iv"=> 4444, "v"=> 5555, ); my @common = grep exists $one{$_}, keys %two; @one{@common} = @two{@common};
In reply to Re: How do I make all the keys in %a with common keys in %b equal to %b's values?
by ungalnanban
in thread Reaped: How do I make all the keys in %a with common keys in %b equal to %b's values?
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |