Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Net::Aim - find out if user is online?

Reply
Thread Tools

Net::Aim - find out if user is online?

 
 
Experienced but Undocumented
Guest
Posts: n/a
 
      10-19-2003
Is it possible to use Net::AIM to find out if a specific user is online or
offline? If so, how is this done?

Thanks!


 
Reply With Quote
 
 
 
 
Experienced but Undocumented
Guest
Posts: n/a
 
      10-19-2003
"Experienced but Undocumented" <> wrote
> Is it possible to use Net::AIM to find out if a specific user is online or
> offline? If so, how is this done?


Alternately, I would be just as content if I could capture a message a user
sent to me. I'm having troubles with the following from
http://www.webreference.com/perl/tutorial/13/2.html. For some reason it
dies on line 8. Without that line it does not die...but nothing happens
either

1 use Net::AIM;
2 my $nick = "motherofperlbot";
3 my $aim = new Net::AIM;
4 $aim->debug(1);
5 my $conn = $aim->newconn(Screenname => 'motherofperlbot',
6 Password => 'motherofperl')
7 or die "Can't connect to AIM server.\n";
8 $conn->add_handler('config', \&on_config);
9 $aim-start;
10
11 sub on_config {
12 my ($self, $event) = @_;
13 my ($str) = $event->args;
14 $self->set_config($str);
15 $self->send_im($nick, 'testing...');
16 }


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
find it, cut it out, find next oldyork90 Perl Misc 5 01-22-2012 08:22 AM
How to exclude action of Find::Find::find in subdirectories withknown names? vdvorkin Perl Misc 3 02-14-2011 05:28 AM
How to exclude action of Find::Find::find in subdirectories withknown names? vdvorkin Perl Misc 0 02-10-2011 05:18 PM
Find.find does not find orphaned links? Wybo Dekker Ruby 1 11-15-2005 02:50 PM
How to find out the User Name The ASP.NET is run under in the Code David Shvartsman ASP .Net 2 08-11-2003 04:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57