in reply to Inheritance and merging of fields

Without seeing any code, it's impossible to give any reasonable level of help. Would it be possible for you to create a cut-down but complete example that exhibits the problematic behaviour that you describe?

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^2: Inheritance and merging of fields
by nite_man (Deacon) on Jul 25, 2006 at 11:07 UTC
    I agree with with you but the problem is when I try to reproduce this problem using some simple case, let say, create a scrit and create the object C there, everything works fine. But if I get you the code it takes 5 - 10 screens and week to understand how it works.
    Maybe you have some suggestions how to trace it?

    ---
    Michael Stepanov aka nite_man

    It's only my opinion and it doesn't have pretensions of absoluteness!

      Well, if you have a cut-down version that works and a full version that doesn't, then why not start with the cut-down version and slowly add code from the full version until it breaks.

      --
      <http://dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg

        The problem seems resolved by adding
        use ParentClass;
        before
        use base qw(ParentClass); use fields qw(field1, ... );
        It's very strange because without using
        use ParentClass;
        Any ideas why?

        ---
        Michael Stepanov aka nite_man

        It's only my opinion and it doesn't have pretensions of absoluteness!