in reply to filter array based on 2 fields

Hi I have an array like this (client,status,description)

Can you show us?

o that if there are duplicates they are removed so there is only one entry left in the new array.

This is perlfaq4# How can I remove duplicate elements from a list or array?

Welcome, see The Perl Monks Guide to the Monastery

Replies are listed 'Best First'.
Re^2: filter array based on 2 fields
by Anonymous Monk on Aug 20, 2012 at 18:10 UTC

    Hi
    it's an array like this
    (client,Status,Description
    client,Status,Description
    and so on)
    it's lines for a csv file I need to remove duplicates based on client and status as description can vary because of a timestamp
    Thanks Thorbjorn