Audio-TagLib - Re: Extending interface

Posted on Fri Mar 9 12:32:15 2007 by dongxu in response to 4516 (See the whole thread of 6)
Re: Extending interface
Hello,
Please check the type of the object returned by new function:
my $o = Audio::TagLib::Tag::->composer(); print ref $o, "\n";
If the bless is right, you can get 'Audio::TagLib::String', then you can print the content of that string by
$o->CString()
To completely verify the structure of that object, it is also a good idea to run:
use Devel::Peek; Dump($o);
I assume you might forget to call CString function,
print $o
will show you the C pointer address, which is of course a big number ;-)
I plan to add such operator overload function to make
print $o
work in future version.
-dongxu
Direct Responses: 4518 | Write a response