On Wed, 21 Aug 2002, Priss wrote: > Hello, > > I am very new to Perl, wonder if someone can help me > with this... if I have: > > @arr1 = qw (one two three four five); > @arr2 = qw (two four);
This is a faq, perldoc -q intersection Although for this kind of operations a hash might be better option. > > How can I remove all elements from @arr2 from @arr1 so > the new array will be @newarr = (one three five)?? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]