in reply to help on hashes

First off, put use strict; at the top of your script and try again. You'll immediately find out that the hash %rows is not defined. You also never assign to it. Please read the Llama or Camel book and do their examples. That will help you out tremendously.

Note - $rows, @rows, %rows - they are all separate variables. For all practical purposes, all they share is a name.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.