I thought some people on this list might find this useful. http://search.cpan.org/~robm/HTML-GenerateUtil-1.02/
I think the "Context" section probably gives the best overview. --- When creating a web application in perl, you've got a couple of main choices on how to actually generate the HTML that gets output: * Programatically generating the HTML in perl * Using some template system for the HTML and inserting the data calculated in perl as appropriate Your actual application, experience and environment will generally determine which is the best way to. If you go the programatic route, then you generally need some way of generating the actual HTML output in perl. Again, there's generally a couple of ways of doing this. * Just joining together text strings in perl as appropriate. Eg. $link = "<a href="$ref">$text</a>"; * Or using some function module like CGI Eg. $line = a({ href => $ref }, $text); * More complex object systems like HTML::Table The first seems easy, but it gets harder when you have to manually escape each string to avoid placing special HTML chars (eg <, etc) in strings like $text above. With the CGI, most of this is automatically taken care of, and most strings are automatically escaped to replace special HTML chars with their entity equivalents. While this is nice, CGI is written in pure perl, and can end up being a bit slow, especially if you already have a fast system that generates pages very heavy in tags (eg lots of table elements, links, etc) That's where this module comes it. It provides functions useful for escaping html and generating HTML tags, but it's all written in XS to be very fast. It's also fully UTF-8 aware. --- Comments and suggestions welcome. Rob ---------- [EMAIL PROTECTED] Sign up at http://fastmail.fm for fast, ad free, IMAP accessible email -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html