in reply to Interpretation of a line needed.

It's basically creating a temporary hash and testing if $field exists in the hash. So
map { $_ => undef } qw(Name Phone)
Create a list of key value pairs from the given list where the keys are each element of the list and values are undef
{ map { $_ => undef } qw(Name Phone) }
Populate an anonymous hash with the list that was created from the map
exists { map { $_ => undef } qw(Name Phone) } -> { $field };
Check for the existence of $field in the anonymous hash reference.

Perl Idioms Explained - keys %{{map{$_=>1}@list}} may also be of help.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Interpretation of a line needed.
by Anonymous Monk on Sep 23, 2003 at 16:32 UTC
    Thanks all!