If you're trying to build a 100% dynamic web site and avoid static content (for whatever reason), you may wish to consider things like
. Perl does a good job of doing things like this when you combine it with mod_perl, but at the risk of being anti-Perl for a moment, there are other tools out there specifically written to do things like this, such as PHP. Alternatives might suit your needs a bit better than Perl alone would, but since you've given no indication of what you're trying to do, you're on your own as far as evaluating suitability to purpose.