coderlemming (coderlemming) wrote in lj_clients,
coderlemming
coderlemming
lj_clients

LiveJournal.pm

I'm writing a little PERL script that'll let me copy entries between two LiveJournal-based sites periodically (I have my reasons). I discovered LiveJournal.pm -- how neat. However, I am deeply irked by the way it's coded. Naturally my instinct is to call LiveJournal->new twice, to create two $lj objects, one for the "from" server and one for the "to" server. Unfortunately, although LiveJournal.pm pretends to be coded using PERL object-orientation, the variables like username and password are global to all objects. I'm going to recode it, but in the meantime, has anyone dealt with this problem, and have they already fixed the code?
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 9 comments