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


in reply to Re: Arrays and Hashes Mapping
in thread Arrays and Hashes Mapping

Better use exists here, so that ( zero => 0, empty => '' ) won't give you false positives:
@list = grep { !exists $hash{$_} } @list;
--kap