Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: comparing lists and getting an exemtion report

by Kenosis (Priest)
on Apr 20, 2012 at 19:56 UTC ( #966248=note: print w/replies, xml ) Need Help??

in reply to comparing lists and getting an exemtion report

Although not as nicely readable as Riales's solution, here's another option:

map{$setB{$_}++}@listB; @listC = grep{!$setB{$_}}@listA;

Hope this helps!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966248]
[marto]: Sharepoint ss a mess
[marto]: /ss/is/
[Discipulus]: yes I can imagine marto but they dont take my opinion in consideration..
[marto]: I told our client this, they spent many years and lots of consultants to try and get it to do what they wanted. They're ditching it now
[Discipulus]: I hope at least a minimal implementation, in the middle of july i'll have the first introductional course..
Discipulus nemo profeta in patria..

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-06-27 09:10 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (601 votes). Check out past polls.