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.