As eric256 suggested, take a look at Net::AIM. It's pretty simple. If you want to go crazy, you can use Net::OSCAR, but it's definitely easier to get started with Net::AIM.
If I were a terrorist I'd mainly be afraid of polar bears. Because at the moment, I'm mainly afraid of polar bears, and I can't really see why that would change.
- slashdot