http://www.perlmonks.org?node_id=379055


in reply to Re: scanning hash
in thread scanning hash

Very nice. But assumes that all values are true. It would be fairly easy to make it work with 0 or "" values, but not so easy to make it work with undef.