If I understand rigth you want to count the number of occurrencies of every distinct "word" in your file.
To do so you should extract the "words" from the file and use a hash (not an array) to count the occurrencies. At the beginning the hash is w empty; for every word you extract, you check if defined($hash{$word}): if it is defined then you increment the value, else you put the value to one.
Careful with that hash Eugene.
In reply to Re: Reporting entries in a file
by psini
in thread Reporting entries in a file
by SkullOne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |