Net::BitTorrent brings BitTorrent to Perl. Bet::BitTorrent is available via CPAN.
Features include...Proven portability. Written in pure Perl. No compiler needed. Well documented API and a clean, class-based design. Doesn't depend on any 'extra' modules. If you have perl 5.10, you're set. International support; Unicode filenames are properly handled even on Win32. Support for many major extensions to the base protocol including the Fast (Peers) Extension and Mainline DHT. Getting Started...Getting a full client up and running with Net::BitTorrent is easy. Simply... Pick an installation method: CPAN shell: cpan Net::BitTorrent PPM shell: ppm install Net::BitTorrent (Note: I suggest using ActiveState's beta repositories.) Manually (from a Subversion checkout or extracted .tar.gz): perl ./Build.PL && ./Build && ./Build test && ./Build install Type "perldoc Net::BitTorrent" at the command line for documentation and a very simple working client.
For more complete sample clients, see client.pl and web-gui.pl; these two files are also bundled with the Net::BitTorrent distribution but are not installed. For more geeky stuff, see my other repository here on GoogleCode... There, you'll find (among other things) perl4mIRC.
These details are provided for information only. No information here is legal advice and should not be used as such.