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

  • 302: lj_dev

    In the interests of consolidating all LiveJournal development-related discussion, we're going to be closing down this community. The same…

  • Plain text to LJ

    I have an old blog from xanga that's in html/plain text and I want to move it over here. Which client would be the best to do this? I also want to…

  • ljKlient 0.2.0 Preview Release 1

    Today marks another milestone in the development of ljKlient — as the first preview of the 0.2 series is released.  Please go to the project…

  • 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