"Ed W" <dodgynewsgroupsewildgoose.demon.co.uk> wrote in message
news:EbkRa.331382$fC.2436421news.easynews.com...(it's> Hi, I do hope this isn't a question asked 50 times a month, but I'm just
> getting to grips with the OO side of perl and struggling top get my head
> round the sheer volume of info. Please feel free to direct me to the man
> pages, but specific sections would be useful
> I have an existing class that I would like to derive some methods from1. Have you considered using Data::Dumper to yze the object?> compress:PPMd for what it's worth). The ->new function actually returns
> something which is not a hash (in fact I think it may be a C++ reference),
> but I haven't managed to get my debugger to tell me what it is. So what I
> think I would like is for my new derived class to use a hash for data
> storage, but somehow NOT to have to overload every existing method.
2. A look at the Compress::PPMd source code
([url]http://search.cpan.org/author/SALVA/Compress-PPMd-0.08/MANIFEST[/url]) shows that
this module -- considered by itself -- is not actually object-oriented.
Rather, it's a "regular" Perl module which uses Exporter to export its
functions. It uses XSLoader to load the extension written (I think) in C.
The 'new' method is in the XS, not in the Perl. I don't know enough about
this to comment further; perhaps another list-member can tell you more about