Cody Pendant has asked for the wisdom of the Perl Monks concerning the following question:

I don't know how many Monks have been following the recent announcements about blog-software company SixApart buying blog-software/community LiveJournal, but one of the interesting parts of the announcement from the LiveJournal side is that it's a good merger, because "both companies use Perl".

Now that's cool, but LiveJournal use BML, and I took a quick look at a tutorial on BML and came away baffled -- it seems more like a server-level language. Can someone explain the relationship?



($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re: 6A, LJ, BML and Perl
by gaal (Parson) on Jan 07, 2005 at 09:18 UTC
    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.

Re: 6A, LJ, BML and Perl
by Thilosophy (Curate) on Jan 07, 2005 at 09:17 UTC
    it seems more like a server-level language. Can someone explain the relationship?

    Well, the LiveJournal site runs on a web ... server. BML is implemented in Perl for use with mod_perl, by the way.

Re: 6A, LJ, BML and Perl
by Anonymous Monk on Jan 07, 2005 at 09:10 UTC
    Considering 6A and LJ are in the blogging industry, it does make a lot of sense they use one or more templating systems. Which BML seems to be. BML also allows you to embed Perl code, so you have a BML-Perl relationship.

    Or are you looking for another kind of relationship?

Re: 6A, LJ, BML and Perl
by Cody Pendant (Prior) on Jan 07, 2005 at 20:52 UTC
    Thanks for that, I guess I didn't explain myself very well in the question, did I? Anyway, I understand more now.


    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
    =~y~b-v~a-z~s; print