Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: To Hash or to Array--Uniqueness is the question.

by kbrint (Sexton)
on Dec 02, 2005 at 08:47 UTC ( #513535=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my (@items, @unique, %seen);
    
    ...
    {
        push @unique, $_ unless $seen{$_}++;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513535]
help
Chatterbox?
and the monastery is silent...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2017-03-27 01:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.