@ary1 = grep {!exists $h2{$_} or $dupes{$_}=0} @ary1; @ary2 = grep {!exists $h1{$_} } @ary2;
minor edit
In reply to Re: Re: Re: Printing and Removing Duplicates in Arrays
by andye
in thread Printing and Removing Duplicates in Arrays
by johnirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |