Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to do this?

by sundialsvc4 (Monsignor)
on Jun 22, 2013 at 22:39 UTC ( #1040299=note: print w/ replies, xml ) Need Help??


in reply to How to do this?

Ex minimis, in your code you are saying that Son is aParent ... hence, the object that it (incorrectly ...) produces will never search for its methods in Son, even though the constructor method is defined there.   The search for classes will instead look in Parent, as you see it doing.   Constructors in Perl are, as previously noted, told what class-name to use.   A little crazy, but you do get used to it.


Comment on Re: How to do this?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2014-07-12 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls