http://www.perlmonks.org?node_id=928750


in reply to frequecny of occurence showing an error

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.
  • Comment on Re: frequecny of occurence showing an error