Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Removing key/value pairs from a hash

by mickeyn (Priest)
on Nov 27, 2007 at 12:13 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://653202]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-19 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found