|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: frequecny of occurence showing an errorby Taulmarill (Deacon) |
| on Sep 30, 2011 at 11:37 UTC ( [id://928750]=note: print w/replies, xml ) | Need Help?? |
|
Since you declared the hash %frequency outside the foreach-loop, its contents are not deleted after each iteration. To archive this you should declare the hash inside the foreach-loop.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||