in reply to HTML table-of-contents generator

Though HTML::Toc is probably what you need, not MS Word, just throw it in as an idea. You can read a html file into Word and have it generate a TOC by "Insert/Index and Tables..." menu option. It will create a TOC with hierarchy according to the header tags. But afterwards Word will totally mess up the html. Only useful for some quick one-time job or getting a quick look-and-feel.