How to update a table of content(TOC) of an open office document preferably using OpenOffice::OODoc, in Writer on the TOC one can click right and select "Update index", how do I do this within perl?

In reply to update table of content using OpenOffice::OODoc by melutovich

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":