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

Re: Removing key/value pairs from a hash

by oha (Friar)
on Nov 27, 2007 at 11:39 UTC ( [id://653199]=note: print w/replies, xml ) Need Help??


in reply to Removing key/value pairs from a hash

the most similar working way i found is:
my %norefs = map { ref $h{$_} ? () : ($_,$h{$_}) } keys %h;
Oha

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found