Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2014-10-25 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (148 votes), past polls