Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
count of repeated word in array



digilas
New User

Jun 12, 2008, 6:54 AM


Views: 4552
count of repeated word in array

i have to write program to count of repeated word in array

for example we put this array : @word= qw( toyota benz benz bmw toyota benz);

and program output like this :

benz 3 reapeated
toyota 2 repeated
bmw 1 repeated

Thank u so much


KevinR
Veteran


Jun 12, 2008, 11:24 AM


Views: 4543
Re: [digilas] count of repeated word in array

A search of the internet would find the answer to this question. The FAQs section of this website probably has an example and perls FAQs does also.
-------------------------------------------------