in reply to Help with reading MP3's

What output do you get with this?
use MP3::Tag; use warnings; use strict; use Data::Dumper; my $file = shift; my $mp3 = MP3::Tag->new($file); $mp3->get_tags(); print Dumper($mp3);
Basic debugging checklist

Did you try mp3info2?

Replies are listed 'Best First'.
Re^2: Help with reading MP3's
by StarkRavingCalm (Sexton) on Aug 25, 2011 at 01:23 UTC

    Output:

    "Can't call method "get_tags" on an undefined value"

    I haven't tried mp3info2 as all the script I have found use MP3Tag

      Let's assume you have an mp3 file named "file.mp3".
      use MP3::Tag; use warnings; use strict; use Data::Dumper; my $file = 'file.mp3'; my $mp3 = MP3::Tag->new($file); $mp3->get_tags(); print Dumper($mp3);
      Substitute "file.mp3" with whatever your mp3 file name is.

      perlintro