if (grep { $_ eq $unique } @first_list_new) { ...; }