Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by Ovid (Cardinal)
on Aug 02, 2004 at 19:13 UTC ( [id://379389]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://379389]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-18 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found