in reply to Code Generation with Perl?

I happen to think HTML::Template::JIT is an interesting example of code generation (I wrote it). It generates C code compiled by Inline::C to produce the fastest templating system known to (this) man.

-sam