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.next if exists { map {$_ => undef } qw(city state country) } -> { $field };
_________
broquaint
In reply to Re: Explanation of mapping and undef
by broquaint
in thread Explanation of mapping and undef
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |