Subject: | Error trying to create Music::Tag instance |
Date: | Thu, 3 Nov 2011 21:26:35 -0700 |
To: | bug-Music-Tag [...] rt.cpan.org |
From: | John W <jwdevel [...] gmail.com> |
This code fails:
use Music::Tag (pbp => 1);
my $m = Music::Tag->new("filename");
With this error:
Can't locate object method "filename" via package "Music::Tag" at
/usr/local/lib/perl5/site_perl/5.14.1/Music/Tag.pm line 73.
It is fixed by putting (traditional => 1) in the 'use' statement.
Maybe there needs to be some check for 'if($TRADITIONAL_METHODS)...'
in the failing function?
My system (I doubt it matters):
FreeBSD 7.2-RELEASE.
I installed Music::Tag directly from cpan, since I didn't find a port
for it. (ver 0.4103)
I also installed Music::Tag::FLAC (v0.4101) and Music::Tag::MP3 (v0.4101).
I am running Perl 5.14.1
-John