<% $contact->contact_classname %> Contact | <% $contact->line %> | % my @contact_email = $contact->contact_email; % if (@contact_email) {<% join(', ', map $_->emailaddress, @contact_email) %> | % } % foreach my $phone_type (@phone_type) { % my $contact_phone = % qsearchs('contact_phone', { % 'contactnum' => $contact->contactnum, % 'phonetypenum' => $phone_type->phonetypenum, % }) % or next;<% $phone_type->typename %> phone | <% $contact_phone->phonenum |h %> | % }