The export playlist on iTunes sucks eggs. It generates a flat text file that I can't seem to parse in any reliable way with Perl. Luckily, XML.com has an article up about parsing the iTunes Music Library file. It's a straightfoward XML doc (albeit a HUGE XML doc) so generating better looking playlists for CD inserts should be much easier now. Once I get something up and running I'll post the XSLT file over in the Projects section.