hotshot has asked for the wisdom of the Perl Monks concerning the following question:
Hi all!
I have two arrays, I need to get all the values values in one array that DON'T appear in the second array, example:
I have two arrays, I need to get all the values values in one array that DON'T appear in the second array, example:
Anyone?my @arr1 = qw(a b c d e f g h); my @arr2 = qw(d a e); # needed array @result = qw(b c f g h);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Grepping on array
by diotalevi (Canon) on May 19, 2004 at 13:01 UTC | |
Re: Grepping on array
by ctilmes (Vicar) on May 19, 2004 at 13:05 UTC | |
Re: Grepping on array
by Abigail-II (Bishop) on May 19, 2004 at 13:01 UTC | |
Re: Grepping on array
by herveus (Prior) on May 19, 2004 at 13:08 UTC | |
Re: Grepping on array
by monkey_boy (Priest) on May 19, 2004 at 15:12 UTC | |
Re: Grepping on array
by dragonchild (Archbishop) on May 19, 2004 at 14:07 UTC |
Back to
Seekers of Perl Wisdom