in reply to Re: Removing duplicate values for a hash of arrays
in thread Removing duplicate values for a hash of arrays

my %hash = ( a => [ '1','2', ], b => [ '2','3', ], c => [ '1','2', ], ); say "$_ => $hash{$_}" for keys %hash;
c => ARRAY(0x1abd8f0) a => ARRAY(0x1a9f998) b => ARRAY(0x1abd7a0)
So the two arrays are two different arrays, and you can't compare them with a simple cmp.

Replies are listed 'Best First'.
Re^3: Removing duplicate values for a hash of arrays
by Laurent_R (Canon) on Nov 21, 2013 at 18:55 UTC
    Yes, if the hash is built this way, these will be different array refs, but we don't know how the hash was originally constructed. This is why I asked the question.