in reply to Re^2: get difference of two arrays
in thread get difference of two arrays

Or even

undef @h{<$FA>}; # store the "good" ones delete @h{<$QA>}; # remove the "bad" ones @output = keys %h; # keep the remaining ones

Replies are listed 'Best First'.
Re^4: get difference of two arrays
by RMGir (Prior) on Nov 14, 2013 at 14:07 UTC
    Good point! "undef @h..." wins the benchmarks once I add it in, and delete should also be very efficient.

    Mike