make a hash of @arr2 instantiate @arr3 for each element of @arr1 split it to get the second field if that field is a key in the hash push the element onto @arr3