Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: number of keys and values in a hash

by jethro (Monsignor)
on Oct 12, 2011 at 19:59 UTC ( [id://931082]=note: print w/replies, xml ) Need Help??


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).

  • Comment on Re^3: number of keys and values in a hash

Replies are listed 'Best First'.
Re^4: number of keys and values in a hash
by veerubiji (Sexton) on Oct 13, 2011 at 09:13 UTC
    thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://931082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found