Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: how do I efficiently remove one hash from another?

by davido (Archbishop)
on Nov 27, 2012 at 07:11 UTC ( #1005803=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    delete @hash1{ keys %hash2 };
    
  2. or download this
    delete $hash1{$_} for keys %hash2;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005803]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (18)
As of 2017-09-26 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (296 votes). Check out past polls.

    Notices?