Eric:
Thanks for the quick response. The perlform would work for me if my table format is fixed, however, the column width for each table in different html files need to be adjusted and I don't know how to treat it as a variable in perlform. I also don't know how to treat cells which span a few columns in html.