http://qs321.pair.com?node_id=930832


in reply to number of keys and values in a hash

Your code has two opening curly brackets, but three closing ones. Please, post the real code, otherwise we can not help you.
Are you sure you are not calling keys inside the each loop in the real code? That would explain the infinite loop.

Replies are listed 'Best First'.
Re^2: number of keys and values in a hash
by veerubiji (Sexton) on Oct 12, 2011 at 07:21 UTC

    hi choroba, Upto printing number and datainfo is ok, it displying toatl numbers and thier datainfo but after that i need to sotre these numbers into hash so i created hash,but in my hash only one element is there how can use all elements in my hash.