mksitemap is a program that crawls a Web site and writes out a Google sitemap (an XML file that lists the pages on the site). The manual is included in the program: see the source or run "perldoc mksitemap".