in reply to Merging Arrays without duplicates
If you want to perform a merge which removes the duplicates then you might want some thing like:
my %seen; my @out = grep( !$seen{$_}++, @A, @B) [download]
/J\