Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Clarify: How do I find if an array has duplicate elements, if so discard it?

by BrowserUk (Patriarch)
on Jul 14, 2002 at 03:18 UTC ( [id://181550]=note: print w/replies, xml ) Need Help??


in reply to How do I find if an array has duplicate elements, if so discard it?

Depending how your building your data structure, it might make more sense to only add an array to @D, if that array has no duplicates. It being easier to not add it than to later remove it.

  • Comment on Re: Clarify: How do I find if an array has duplicate elements, if so discard it?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found