in reply to For statement 2 html table

This actually is a perl question, although it involves HTML, if I'm understanding the question correctly.

The problem is that the data is in a rather odd format (multiple hashes), and there's a need to get it out of those structures, and into an HTML table -- which can be a pain, given the order that it's necessary to emit an HTML table.

This can be done quite a few ways:

(all code untested as I don't have the original data structures, and I'm only writing this all because it's 5am, and I can't sleep)

Which would I use? Well, the first one's fastest to write, and it's easy to modify so you're emitting <th> as a replacement for <td> in the correct place ... you could loop over a list of strings to be 'eval'd for each iteration, if you wanted to remove redundancies ... but I'd probably look into what put the data in those original structures, and just modify it so it was placed into either an array of hashes, or hash of arrays to start with.