<?xml version="1.0" encoding="windows-1252"?>
<node id="513460" title="To Hash or to Array--Uniqueness is the question." created="2005-12-01 17:36:45" updated="2005-12-01 12:36:45">
<type id="115">
perlquestion</type>
<author id="482313">
eff_i_g</author>
<data>
<field name="doctext">
Pearls of Perl,
&lt;br&gt;&lt;br&gt;
When collecting data that you only want unique values from, would you:
&lt;br&gt;&lt;br&gt;
1. Use a hash; the keys being what you're interested in and the values being arbitrary;
&lt;br&gt;&lt;br&gt;
2. Use an array; filtering it through a routine that makes it unique; or
&lt;br&gt;&lt;br&gt;
3. ?
&lt;br&gt;&lt;br&gt;
What is "best practice"?
&lt;br&gt;&lt;br&gt;
Thank you :)</field>
</data>
</node>
