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.
|
---|
In Section
Seekers of Perl Wisdom