geoffleach has asked for the wisdom of the Perl Monks concerning the following question:
Perl saysuse Audio::TagLib; $test = shift; $file = Audio::TagLib::FileRef->new($test); say 'title:', $file->tag()->title()->toCString(); say 'track', $file->tag()->track()->toCString();
Note that the two calls are identical, except for the title/track. Similar calls in a different context don't have the problem.title:Title Test Can't locate object method "toCString" via package "0" (perhaps you fo +rgot to load "0"?) at ./taglib_test.pl line 9.
My question: How can I discover what Perl sees that results in the error? Many thanks. (FWIW the module reports content from a MP3 file)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unusual "Can't locate object method"
by choroba (Cardinal) on Oct 31, 2024 at 22:04 UTC | |
|
Re: Unusual "Can't locate object method"
by sectokia (Friar) on Oct 31, 2024 at 22:23 UTC | |
by geoffleach (Scribe) on Nov 01, 2024 at 02:45 UTC | |
by dsheroh (Monsignor) on Nov 01, 2024 at 09:38 UTC | |
by geoffleach (Scribe) on Nov 01, 2024 at 19:55 UTC | |
by ysth (Canon) on Nov 01, 2024 at 04:50 UTC | |
|
Re: Unusual "Can't locate object method"
by Anonymous Monk on Oct 31, 2024 at 21:58 UTC |