Sitemap? Dancer has it!
If you're using Catalyst, this is pretty sweet.
If you're using Dancer, there is already a small plugin someone wrote (as his first CPAN upload) called Dancer::Plugin::SiteMap which provides the same idea by adding:
to your code.
I personally love Catalyst and use it on several large-scale projects. If you don't know it, you should!