Perl ships with a module called CGI that semi-automates the process of writing out HTML. Type
perldoc CGI into a terminal for more detailed instructions. (And
perldoc perl if you want to start learning Perl programming!)
If you want to write (or parse) XML in some non-HTML format, I would use the XML::Twig Perl module. To install it, you can do this:
Code:
sudo perl -MCPAN -e shell
(the first time you run this, you will get a prompt asking if you're ready for manual configuration; type no)
cpan> install XML::Twig;
(wait until it's installed, then press Ctrl+D to exit back to the shell)
Also perldoc XML::Twig should give you some documentation.