in reply to Removing key/value pairs from a hash
my %norefs = map { ref $h{$_} ? () : ($_,$h{$_}) } keys %h; [download]