Are you just wanting to compress the output to make it smaller for easier transport or are you wishing to obsfucate your HTML in an attempt to make it difficult for someone to copy your site's layout? I've never used Perl to do either, the former is accomplished much more efficently by mod_gzip for Apache 1.x and mod_deflate for Apache 2.x and the latter is just silly, but from a purely Perl standpoint you may want to check out [perl.apache.org ]