good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Extracting elements in one array but not in anotherby emazep (Priest) |
on Oct 23, 2004 at 06:50 UTC ( [id://401778]=note: print w/replies, xml ) | Need Help?? |
To find elements that are in one array but not in another, there is a nice loopless solution from the Perl Cookbook which uses the delete function:
Of course there is also a loopy solution, should you prefer it: Stick with these. Ciao, Emanuele.
In Section
Seekers of Perl Wisdom
|
|