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

Re: remove duplicates from an array!

by kirillm (Friar)
on Jan 07, 2008 at 22:47 UTC ( #660963=note: print w/replies, xml ) Need Help??


in reply to remove duplicates from an array!

You were given several solutions in reply to Remove Duplicates!! Please Help, for example see my post Re: Remove Duplicates!! Please Help.

-- Kirill

P.S. In your code you don't have an array of arrays, but a plain array of strings...

Replies are listed 'Best First'.
Re^2: remove duplicates from an array!
by nashkab (Novice) on Jan 07, 2008 at 22:56 UTC
    Hi Kirill, Thanks for the response. In My previous post the data was in a file. Now for this problem the data is in an array.
      In My previous post the data was in a file. Now for this problem the data is in an array.

      That doesn't matter. The answer to "How do I remove duplicates from a set of data?" is the same. You may have to transform your data into a form more amenable to this operation, but the techniques for removing duplicates are the same.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2022-08-11 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?