in reply to Re: hash of arrays or separate hashes?
in thread hash of arrays or separate hashes?

Monks I need all your help again, sorry I new on this..
Before I use to countfreq for an element using $Elementsfreq{$Element}++; Now to increment the count, do I have to have another variable?, Could + you please tell me what is wrong with the following?: $countElements++; %Elementsfreq = ($Element => [$countElements, [ 0..$index ] ]); $bigramfrequency{$bigram}[0]++; $bigramfrequency{$bigram}[1][$position]++;
Thanks!!

Replies are listed 'Best First'.
Re: Re: Re: hash of arrays or separate hashes?
by Anonymous Monk on Mar 04, 2004 at 16:55 UTC
    oops I am counting twice.. Please disregard the $countElement++. But Still is the rest ok?