in reply to Auto table generation
The mighty DBI has methods that return data structures that match just the type of input that HTML::Template requires.
Note the replies in the above thread that greatly improve on my initial attempt.