If you want to perform a merge which removes the duplicates then you might want some thing like:
There are other examples in the perlfaq4my %seen; my @out = grep( !$seen{$_}++, @A, @B)
/J\
In reply to Re: Merging Arrays without duplicates
by gellyfish
in thread Merging Arrays without duplicates
by perl_krish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |