in reply to Re: Re: Re: Re: CGI Net::AIM get_info()
in thread CGI Net::AIM get_info()
... # 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
|
|---|