Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Removing key/value pairs from a hash

by mickeyn (Priest)
on Nov 27, 2007 at 12:13 UTC ( #653202=note: print w/replies, xml ) Need Help??


in reply to Removing key/value pairs from a hash

delete $h{$_} for (grep {ref $h{$_}} keys %h);
;-)
Mickey

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2017-04-26 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (494 votes). Check out past polls.