http://www.perlmonks.org?node_id=1064302


in reply to Re: Best method to diff very large array efficiently
in thread Best method to diff very large array efficiently

Like already explained, if keys are sufficient then setting values doesn't make sense (well the OP was updated w/o mention...)

Changing this @diff3{@arr_1} = @arr_1; to  @diff3{@arr_1} = () makes some difference.

Cheers Rolf

( addicted to the Perl Programming Language)