@h{@arr1}=(); delete @h{@arr2}; print join("\n",keys %h),"\n";
david 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]