in reply to Failing inheritance or what can make a Child disinherited ?

Is there any chance that you have more than one definition of the base or child class? If so, could you possibly be using a module different from the one you think you are using?

Also, how is testSign being called? If it's called with function syntax instead of method syntax, you'll get the error described.

Cheers,
Ovid

New address of my CGI Course.

  • Comment on Re: Failing inheritance or what can make a Child disinherited ?

Replies are listed 'Best First'.
Re^2: Failing inheritance or what can make a Child disinherited ?
by guha (Priest) on Aug 02, 2004 at 19:28 UTC

    Several good ideas!

    Calling testSign directly as a subroutine works

    print &Parent::testSign() # 1 eq OK

    Showing that the subroutine/method is defined in Parent, but the method invocation does not dispatch to Parent.