develooper Front page | perl.beginners | Postings from April 2002

Array question

Thread Next
From:
Allison Ogle
Date:
April 1, 2002 08:07
Subject:
Array question
Message ID:
HFECKDFDGONADPGJKBPJCEENCCAA.aogle@ti.com
Hi,

I have a datafile with a list of names like

Ana
John
Mike
Tracy
John
Luke
....
etc.

I don't know how long the list is and eventually in the list some of the
names will repeat.  I want to put these names in an array but I don't want
to repeat any names in the array and I want to keep a count of how many
times the name appears in the list.  Does anyone have any ideas or
suggestions?  Thanks,

Allison


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About