in reply to To Hash or to Array--Uniqueness is the question.
When collecting data that you only want unique values from, would you:
That depends on what your "values" are. If they are just strings or can be represented in a canonical form as strings than go ahead and use a hash. If the values in question are something more complex, then a hash isn't going to work for you as the keys of a hash must be strings.
-sauoq "My two cents aren't worth a dime.";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: To Hash or to Array--Uniqueness is the question.
by cowboy (Friar) on Dec 02, 2005 at 22:50 UTC | |
by sauoq (Abbot) on Dec 03, 2005 at 01:49 UTC |
In Section
Seekers of Perl Wisdom