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

Greetings,
I've just started playing around with the Net::AOLIM module and am hoping someone will be able to help. I am trying to figure out how to tell if a user is logged in. I've tried pretty much every hook provided and am at a loss...of course, this isn't saying much as I'm only a lowly sys admin.

=G=

Replies are listed 'Best First'.
Re: Net::AOLIM howto
by eric256 (Parson) on Sep 09, 2003 at 23:53 UTC

    I have not used Net::AOLIM, but i have used Net::AIM and Net::Oscar. In both of those you have to add the buddy to your buddy list (threw there methods) and the listen for an event with the On_Buddy_Update handler. There does not appear to be any way to poll a user not on your buddy list, (if you find a way it would be great if you share it!)

    I recomend giving either of the other AIM modules a look as they both work excelent.

    Good luck!

    ___________
    Eric Hodges
      I've looked at all five or so modules and settled on AOLIM because it seemed to be under fairly active development (last update was just last month)...I'll try with the others to see. Of course, I may also dig into the roll your own functionality that is shown in the perldocs but (not being a "real" programmer) I wasn't sure if I was just missing something. I have a couple of samples to go by for Net::AIM and Net::OSCAR but I haven't really looked closely into that.
      wonder if the roll your own in AOLIM might allow a way to poll for buddies not in your list (although I doubt AOL would let you poll blindly).

      =G=

        I just looked over the example for using Net::AOLIM and if you look in the handlers sub it shows how to handle updates to your buddies status. I would highly recomend using one of the other modules even if they aren't as active, they are much more mature in event handling. :)

        ___________
        Eric Hodges
Re: Net::AOLIM howto
by batkins (Chaplain) on Sep 10, 2003 at 00:04 UTC
    The short answer: don't. :)

    As eric256 suggested, take a look at Net::AIM. It's pretty simple. If you want to go crazy, you can use Net::OSCAR, but it's definitely easier to get started with Net::AIM.


    If I were a terrorist I'd mainly be afraid of polar bears. Because at the moment, I'm mainly afraid of polar bears, and I can't really see why that would change.
    - slashdot