2011-01-31 81 views
3

任何人都可以向我解释如何使用Perl中的MP3::Tag模块在MP3文件中添加用户定义的标签?我做了一些示例程序。如何在MP3文件中添加用户定义的标签?

# Created an object 
$mp3 = MP3::Tag->new($filename); 

# Getting the already defined tags for the file 
@tags = $mp3->get_tags(); 

我的问题是:如何添加一个用户定义的标签,例如标签Name

回答

3

module's synopsis

$mp3->update_tags({name => 'blah blah'}); # Edit in-memory, and commit to file 
+0

感谢您的回复轻微编辑。我们如何为这个标签添加数据? – thillaiselvan 2011-01-31 12:55:33

相关问题