in reply to Comparing Two Arrays

If your arrays are in fact representing sets, i.e., no repeated elements, Set::Scalar has what you need:
use Set::Scalar; $s = Set::Scalar->new( 2, 4, 6, 8, 10); $t = Set::Scalar->new( 1, 2, 3, 4, 5); $d = $s->symmetric_difference($t); print $d, "\n";

-Mark

Replies are listed 'Best First'.
Re^2: Comparing Two Arrays
by goober99 (Scribe) on Feb 23, 2005 at 22:30 UTC
    That did exactly what I needed, Mark. Thanks for the quick reply.