You can use Pod::Perldoc::ToToc under the same terms as Perl itself.