One obvious issue would be if you don't have write permission on the file. Check with
use Carp; my $file = '1.mp3'; croak("Cannot write to file $file") if(!-w $file);
You might like to check some of the resources here, for example Fixing mp3 tags for Android 2.0 contains a tested script that uses MP3::Tag to set values in pretty much the way you want.
In reply to Re: I need help about MP3::Tag and perl script.
by hawtin
in thread I need help about MP3::Tag and perl script.
by osmy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |