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


in reply to Arrays and Hashes Mapping

If I understand you correctly, perhaps something like this:

@list = ('one' , 'two' , 'three'); %hash = ( one => 1 , two => 2 , three => 3 ); @list = grep { !$hash{$_} } @list;