in reply to array of hashes

Take a look at: Re: Looping through an Array of Hashes you can replace the print statements in the foreach loop with whatever you need to create the table.