Ok, I spent some time to study the source of Net::AIM, and got a few clues to how the module(s) work.

Net::AIM has an event driven model. You need to set up handlers in your code to handle various events. For this particular exercise I assume that the name of the get_info event is indeed get_info. You will need to find out the exact name of the get_info event, by turning on the debug option in the module.
... # set up a handler to handle the 'get_info' event sub get_info_handler { # four arguments are passed into the handler, but we # are only interested in the second argument, the event my $event = $_[1]; # get the event # $event->{'args'} contains the returning messages # do the processing here ... ... } # set a handler for the 'get_info' event $aim->getconn()->set_handler('get_info', \&get_info_handler); $aim->get_info("screenname"); $aim->do_one_loop(); # this will invoke the event handler


In reply to Re: Re: Re: Re: Re: CGI Net::AIM get_info() by Roger
in thread CGI Net::AIM get_info() by rgens

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.