Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: removing duplicates entries from an array

by VSarkiss (Monsignor)
on Jan 06, 2006 at 17:05 UTC ( #521544=note: print w/ replies, xml ) Need Help??


in reply to removing duplicates entries from an array

The immediate problem is that your RDup routine is returning a new array that you're not saving. IOW do something like this:

@unique = RDup(@unique);
There are a lot of ways you can improve removing duplicates, though, and there are several suggestions in the Perl FAQ list. Try perldoc -q duplicate on your machine for some suggestions.


Comment on Re: removing duplicates entries from an array
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2015-07-08 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls