if (exists $partners{$item}) { my ($partners, $email, $nickname, $realname, $postcode, $phone) = @{$partners{$item}}; # Do something. }