my $sm = Web::Sitemap->new( output_dir => '/path/to/sitemap' ); $sm->add(\@url_list); $sm->add(\@url_list, {tag => 'articles'}); $sm->add(\@url_list, {tag => 'users'}); $sm->finish;
To install Web::Sitemap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::Sitemap
CPAN shell
perl -MCPAN -e shell install Web::Sitemap
For more information on module installation, please visit the detailed CPAN module installation guide.