"be consistent" | |
PerlMonks |
(dkubb) Re: (2) Answer: How do I make all the values in %a with common keys in %b equal to %b's keys?by dkubb (Deacon) |
on Mar 30, 2001 at 12:49 UTC ( [id://68313]=note: print w/replies, xml ) | Need Help?? |
Here's another way to do that:
or exists $b{$_} and $a{$_} = $b{$_} for keys %a;
In Section
Seekers of Perl Wisdom
|
|