in reply to Only printing last hash (repost)

Okay, now that we have the script we just need the input. Meaning the data returned by the database or at least a legend showing what kind of data is returned.

But apart from this you might want to 'pepper' your perl script with a lot of print statements that will print out...

The above exercise is called 'Debugging with print'. :)

Now that you are printing all your data every step of the process, you can see where things go not as you expect them to.

/oliver