exists $hash{$_} and push @new_array, $hash{$_} for @array;