Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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


Comment on Re: Removing key/value pairs from a hash
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-11-23 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (134 votes), past polls