in reply to 6A, LJ, BML and Perl

BML is a macro language. It's implemented in perl, but the point of it is that it lets you put your perl code in _code blocks and they run on the server.

Take a peek at LiveJournal's server htdocs/ directory for examples of how it is used.