perlquestion
DavidBer
hash
associative_array
duplicate
HoH
reference
HoA
data_structure
multiple
value
same
file
I am trying to read in a file. The structure of the file
is city:country. What I need to do is to show cities within
a country. My thought was to read the file into a hash,
with it like this:
<p>
US:Miami<br>
US:New York<br>
US:Chicago<br>
<p>
I understand that an @ array basically uses a number as the
identifier of the value. How does a hash do it?
<p><i>Originally posted as a Categorized Question. </i></p>