in reply to Re^2: number of keys and values in a hash
in thread number of keys and values in a hash
Naturally when you put a print statement inside a loop it prints as often as the loop is executed. And when you have a print statement inside a loop inside another loop, this print statement will be executed much much more often. If you don't want to print so many times, put the print statement AFTER the loop(s).
In Section
Seekers of Perl Wisdom