telcontar has asked for the wisdom of the Perl Monks concerning the following question:
my %h = ( one => 'v1', two => 'v2', three => { a => 'x', c => 'y' } ); my %norefs = map { $_ => $h{$_} unless ref $h{$_} } keys %h;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Removing key/value pairs from a hash
by oha (Friar) on Nov 27, 2007 at 11:39 UTC | |
Re: Removing key/value pairs from a hash
by mickeyn (Priest) on Nov 27, 2007 at 12:13 UTC | |
Re: Removing key/value pairs from a hash
by johngg (Canon) on Nov 27, 2007 at 11:39 UTC | |
Re: Removing key/value pairs from a hash
by sh1tn (Priest) on Nov 27, 2007 at 13:22 UTC | |
Re: Removing key/value pairs from a hash
by jdporter (Paladin) on Nov 27, 2007 at 15:08 UTC |