in reply to Removing key/value pairs from a hash

a little shorter:

delete @h{grep(ref($h{$_}), keys(%h))};