Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Adding Unique Elements to Array

by melora (Scribe)
on Feb 28, 2005 at 18:58 UTC ( [id://435147]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Adding Unique Elements to Array
in thread Adding Unique Elements to Array

That's the way I do it. It avoids having to test for duplicates (in my code, anyway). Also, if I need 'em in order I can use sort keys.. I'm relieved to see that mentioned here. I was afraid I was the only one doing it, and that there was a far better way.

Log In?
Username:
Password:

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

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

    No recent polls found