Search notes:

Perl module MP3::Info

use warnings;
use strict;
use MP3::Info;

my $mp3_file = shift or die;
die unless -f $mp3_file;

my $mp3  = MP3::Info->new($mp3_file);

foreach my $field qw(ARTIST ALBUM TITLE TRACKNUM YEAR GENRE COMMENT) {
 printf("%-20s %s\n", ucfirst(lc $field), $mp3->{$field});
}
# Same thing?
# -----------
# my $tag  = get_mp3tag($mp3_file);
# foreach my $field qw(ARTIST ALBUM TITLE TRACKNUM YEAR GENRE COMMENT) {
#  printf("%-20s %s\n", ucfirst(lc $field), $tag->{$field});
# }


print "\n";

my $t = get_mp3tag($mp3_file, 2, 1);
print join "\n", keys %$t;

print $mp3->{TPUB};
Github repository PerlModules, path: /MP3/Info/script.pl

See also

Perl modules.
mp3 tools

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1744798859, '18.189.1.87', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/MP3/Info/index(66): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78