in reply to Remove similar elements in both the array
Update: I guess that I do need the braces after all, as davis noted I didn't run the code. Sorry.my %in_a; my %in_b; undef @in_a{@a}; undef @in_b{@b}; @a = grep {not exists $in_b{$_}} @a; @b = grep {not exists $in_a{$_}} @b;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Remove similar elements in both the array
by davis (Vicar) on Mar 08, 2005 at 09:58 UTC |