Problems? Is your data what you think it is? | |
PerlMonks |
Re: finding the keys with mutliple values in hash and delete themby hdb (Monsignor) |
on Mar 19, 2015 at 09:21 UTC ( [id://1120549]=note: print w/replies, xml ) | Need Help?? |
From all of the keys of your hash, grep those that refer to arrays with length larger than 1, and then delete the corresponding hash slice (all done in one go below):
In Section
Seekers of Perl Wisdom
|
|