in reply to Comparing Two Arrays

You could use a hashtable:
my %hashOfAllElements = (); foreach $element (@array1, @array2) { $hashOfAllElements{ $element }++; } my @array3 = keys %hashOfAllElements;
I think that might do what you want.

Rob