I want to use hash to count occurrences of words in a column of a file. How do I use hash for this. I am new to perl and am unable to figure out how to use hash for this.The column looks like:
SINE
LINE
LINE
LINE
SINE
Alu
Alu
SINE..... and so on... the words that follow are different but are repeated frequently.
I want to display the output like
SINE = 3
LINE =3
ALU =2 AND so on.
how do I work it out with %hash?