There is a CPAN module Set::Array . I know it may be a little painful to learn and CPAN modules for such a small application but in the long run It helps especially if you are repititively going to use these functions
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); > > How can I remove all elements from @arr2 from @arr1 so > the new array will be @newarr = (one three five)?? > > Many thanks. > > Priss > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]