use MP3::Info; die "Must use parameters and seperator\n (SEPERATOR ARTIST TITLE YEAR ALBUM GENRE COMMENT)" unless @ARGV; $sep=shift; @tokens=@ARGV; while(<*.mp3>) {my $tag=get_mp3tag($_) or (push(@errors,"No tag for $_\n") and next); $nn=''; for $i (@tokens){$nn.=$tag->{$i}." $sep ";} my $z=rindex($nn,$sep); my $len=length $sep; substr($nn,$z,$len+1,''); chop $nn; $nn.='.mp3'; print "Renamed $_ to $nn \n" if rename $_,$nn; } print "\n\n"; print @errors;