my %norefs = map { $_ => $h{ $_ } } grep { ! ref $h{ $_ } } keys %h;
I hope this works for you.
Cheers,
JohnGG
In reply to Re: Removing key/value pairs from a hash
by johngg
in thread Removing key/value pairs from a hash
by telcontar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |