Net::IChat - use apple's iChat as a messaging tool
use Net::IChat; use Net::IChat::Client; my $me = Net::IChat->me(); $me->announce; my $clients = Net::IChat->clients(); if (@$clients) { my $conversation = $clients->[0]->converse(); $conversation->send('Hello'); my $mesg = $conversation->receive(); if ($mesg->can('body')) { print $mesg->body; } }
Net::IChat allows you to write clients for Apple's Rendezvous iChat.
To install Net::IChat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::IChat
CPAN shell
perl -MCPAN -e shell install Net::IChat
For more information on module installation, please visit the detailed CPAN module installation guide.