in reply to Printing of Array Hash is Missing Elements

You say you have verified that the hash contains all 40 elements. How? Without seeing that code it is going to be hard for us to guess why print_hash() only prints out 11 elements, but your mystery method prints out 40.

That aside, you might want to consider the following changes:

Best, beth

Replies are listed 'Best First'.
Re^2: Printing of Array Hash is Missing Elements
by spickles (Scribe) on Sep 28, 2009 at 20:57 UTC

    Et al -

    Thanks for the many suggestions. It's my limited knowledge of perl that results in my current code. I appreciate the overwhelming support from those that do this on a more regular basis. I think that the suggestions I have gotten here will allow me to make my code smaller, more reliable, and easier to understand. It has been particularly the use of multidimensional arrays, hashes and references that has gotten me confused here. I'll clean things up and post back. Thanks again!!