Perl - AOL Instant Messenger with Net::OSCAR|Casey|casey@cuvou.net|1205850983|Kirsle|xx|0|69.16.222.179|[url=http://search.cpan.org/perldoc?Net::OSCAR]Net::OSCAR[/url] is by far the most complete Perl module for signing on to AOL Instant Messenger. It supports almost everything, from basic IM and chat to buddy icons and typing statuses. Mostly the only things it doesn't support are file transfers, webcam, and voice that.<br /><br />The current version as of this writing is 1.925.<br /><br />The starter AIM bot from the [url=http://www.rivescript.com/?p=perl]Perl RiveScript Tutorial[/url] uses Net::OSCAR and has support for a lot of the basic functionality built in already.<br /><br />[b]Tips for Windows Users[/b]<br /><br />If your AIM bot crashes with the error &quot;Couldn't set Win32 blocking: Unknown error&quot;, this is the solution:<br /><br />1. Open &quot;Net/OSCAR/Connection.pm&quot; in a text editor such as Notepad.<br /><br />*Note: if the file contains a bunch of square symbols or all runs together as one line and is hard to read, open it in Wordpad first, do a File/Save and then open it in Notepad.<br /><br />2. Go to line 369, which might look sorta like this:<br /><br />[code]) or die &quot;Couldn't set Win32 blocking: $!\n&quot;;[/code]<br /><br />(Or just do a search for &quot;Win32 blocking&quot;)<br /><br />3. Change the &quot;or die&quot; text to be &quot;or warn&quot;, so the code in that part of the file should look like this:<br /><br />[code]# Cribbed from http://nntp.x.perl.org/group/perl.perl5.porters/42198<br />ioctl($self-&gt;&#123;socket&#125;,<br /> &nbsp;0x80000000 &#124; (4 &lt;&lt; 16) &#124; (ord('f') &lt;&lt; 8) &#124; 126,<br /> &nbsp;$blocking<br />) or warn &quot;Couldn't set Win32 blocking: $!\n&quot;;[/code]<br /><br />This will change that error from a fatal error to a nonfatal one. Your bot will still sign on and chat just fine even if that warning still appears on the command prompt.<br /><br />Reply to this thread to discuss anything related to this module.|NS|1205851077|Kirsle|
