Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How do I make all the values in %a with common keys in %b equal to %b's keys?

by CharlesClarkson (Curate)
on Jun 11, 2001 at 13:10 UTC ( [id://87430]=note: print w/replies, xml ) Need Help??


in reply to How do I make all the values in %a with common keys in %b equal to %b's values?

my @common = grep exists $a{$_}, keys %b; @a{@common} = @b{@common};
  • Comment on Re: How do I make all the values in %a with common keys in %b equal to %b's keys?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://87430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-20 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found