Another idea would be to save yourself quite some work by using a service like last.fm.
In reply to Re: iTunes lacking on CPAN... by crenz in thread iTunes lacking on CPAN... by stonecolddevin