http://qs321.pair.com?node_id=679170


in reply to Re: How Do I Compare Array A to Array B, removing B elements from A.
in thread How Do I Compare Array A to Array B, removing B elements from A.


other strategy for above solution is.
@array_one = qw(one two three four); @array_two = qw(three four five six); %array_one = map {$_, 1} @array_one; @difference = grep {!$array_one {$_}} @array_two; print "@difference\n";