Before committing anything to CPAN, have a look at:
In reply to Re: SQL to HTML cross-table code critique by dbwiz in thread SQL to HTML cross-table code critique by nobull