Help for this page

Select Code to Download


  1. or download this
    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';
    
  2. or download this
    use MP3::Info;
    use strict; 
    #
    ...
    
    #using the $tag object as a hash (in hash slice form!)
    print join (" - ", @$tag{@tokens}),".mp3";
    
  3. or download this
    print "Renamed $_ to $nn \n" if rename $_,$nn;
  4. or download this
    unless (-e $fn) {
        print "Renamed $_ to $nn \n" if rename $_,$nn
    ...
        # for example ...
        push(@errors,"Tried to rename $_ to $nn, file exists\n")
    }