in reply to Re: Re (tilly) 1: Inheritance Query
in thread Inheritance Query

Insert a package statement within the evaled code and that will associate it with a class, and make it callable by objects in that class. That knowledge will, of course, need to be combined with some logic about what class each bit of code belongs in, but that is another story.

When you say that you are a bit of a newbie to Perl, are you familiar with how Perl's OO model works? (eg as described by perlobj and perltoot...) If not, then learning that would be a good step.

Replies are listed 'Best First'.
Re: Re (tilly) 3: Inheritance Query
by Anonymous Monk on Feb 01, 2002 at 12:09 UTC
    Thanx for your help, I been over the OOP/OOD stuff for perl but it all works in a very similar why to java/C++ both of which I'm very familiar with. I still can't figure out how to retrieve the super class handle from within an eval block, but maybe it's not possible without hacking around inside perl? I think I will try a different approach for now and come back to this when there are no deadlines to be met :o) Thanx again for you help.
      Hmmm...perhaps it is because Perl doesn't have a SUPER class handle per se? When you come back to it I think it may be helpful to write some code in Java or C++ that shows what you want to do, and then ask how to accomplish that in Perl.