How do I compare 2 lists of keywords to see the differences?

Discussion in 'Products & Tools' started by vwdforum, Feb 7, 2009.

  1. #1
    Hello

    I would like to compare a list of keywords (lista) against another list (listb) and see what is not on lista already

    Any suggestions on how to do this, online software would be great!

    Cheers Mally
     
    vwdforum, Feb 7, 2009 IP
  2. vwdforum

    vwdforum Well-Known Member

    Messages:
    782
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Come on guy's there's an expert or 2 here somewhere!!
     
    vwdforum, Feb 7, 2009 IP
  3. mrmaypole

    mrmaypole Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There's an example in the Perl Cookbook that'll do it. You have a list (a) and a list b. You read list a into a hash (seen{$item}=1), and remove them for list b. Then you print out the ones that have seen{$item}=1.
     
    mrmaypole, Feb 7, 2009 IP
  4. mrmaypole

    mrmaypole Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    mrmaypole, Feb 7, 2009 IP