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

Re: How to do this?

by sundialsvc4 (Abbot)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040299]
help
Chatterbox?
shmem puts down the Canon garments and dresses as Chancellor
[vrk]: Congratulations. You should have Cookies
[shmem]: thanks vrk - but I'll rather have a plate of "silly con charme"
Lady_Aleena is trying to explain perl regexen to people right now and explaining how variables expand in regexen.
[Lady_Aleena]: The people I'm talking with think /$var/ looks weird with some saying it shouldn't work.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-04-28 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (520 votes). Check out past polls.