LastfmToTwitter is a project mainly written in Perl, it's free.
a perl script to post last.fm update to twitter
USE AT YOUR OWN RISK.