Posted on 2007-03-09 10:32:15-08 by dongxu in response to 4516
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
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.