Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: filter array based on 2 fields

by BillKSmith (Chaplain)
on Aug 20, 2012 at 13:40 UTC ( #988452=note: print w/ replies, xml ) Need Help??


in reply to filter array based on 2 fields

You have not told us enough about your data. If your data is an array of strings with comma separated fields, The reference to FAQ4 is probably correct. More likely, you have an array of array references. Each reference refers to an anonymous array of the form you show. Now, "duplicate" is less clear because duplicate arrays and duplicate references are not the same thing.

In any case, you probably mean to remove all but one a duplicated entry, making it unique. You could mean to remove all duplicate entries, leaving only those that were already unique.

Bill


Comment on Re: filter array based on 2 fields

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-09-16 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (155 votes), past polls