my @output = grep { ! exists $h{$_} } @a;