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


in reply to Explanation of mapping and undef

next if exists { map {$_ => undef } qw(city state country) } -> { $field };
This is creating a temporary anonymous hash where the keys are the values in the qw// and then checking for the existence of $field in that hash. For a breakdown of a similar usage of temporary anonymous hashes see. Re: Re: Re: Unique values in array.
HTH

_________
broquaint