Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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!


Comment on Re: comparing lists and getting an exemtion report
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966248]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-02-08 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (273 votes), past polls