#! /usr/bin/perl # (above should be "perl -s" for parameters) use strict; use warnings; use MP3::Info; foreach my $file (`ls *.mp3`) { chomp $file; print "$file\n"; my %info = get_mp3info($file); my %tags = get_mp3tag($file); foreach my $key (keys %info) { my $value = $info{$key}; print __LINE__, "\t $key = $value\n"; } print __LINE__, "\t Time: $info{TIME}\n"; foreach my $key (keys %tags) { my $value = $tags{$key}; print __LINE__, "\t $key = $value\n"; } print __LINE__, "\t Title: $tags{TITLE}\n"; }