Jan 13, 2010, 10:47 AM
Post #1 of 2
Comparing Arrays please help
my @fruits = ('orangoue','apple','pear','banana');
my @varlist = ('banana','spinach','apple');
I want to compare the two arrays fruits and varlist and if the values of varlist are in fruits array then build a new array whichh doesnot have values of varlist.
Can someone please how can I do this?
(This post was edited by triveni1125 on Jan 13, 2010, 10:50 AM)