funcs, I'd suggest going with a function that returns a string over directly printing it out. For example, using
allows this to move to mod_perl better, supposedly. Or, in my case, I've used CGI to create static pages directly to disk, so being able to print it to an arbitrary file would be handy.