Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't seem to get Net::AIM to work.

Status
Not open for further replies.

deadpool42

Programmer
May 24, 2004
40
All I want to do is send a few instant messages. After reading several tutorials and a discussion on another site, I've come up with this code:
Code:
use Net::AIM;

my $aim = new Net::AIM;
$aim->newconn(Screenname => 'TeamMonkeyCrap', Password => '*******');
my $conn = $aim->getconn();
$conn->set_handler(config => sub {
                              my $aim = shift;
                              $aim->send_im('gazuga69', 'It worked!');
                             });
$aim->start();

The problem is that it just runs forever with sending the message. After adding some print statements, I noticed that the anonymous subroutine never gets run. Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top