my @new = keys %{{ map +($_ => undef), @a, @b, @c, @d }};