in reply to Comparing Two Arrays

Use an intermediate hash, like thus:
my %intermediateHash; $intermediateHash{$_}++ for (@array1, @array2); my @array3 = keys %intermediateHash;

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.