Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Duh. What am I missing about inherited constructors?

by JavaFan (Canon)
on Nov 04, 2010 at 13:51 UTC ( [id://869469]=note: print w/replies, xml ) Need Help??


in reply to Duh. What am I missing about inherited constructors?

You're calling Foo::new as a sub, without arguments. Then $class is undef. That should cause the sub to die.

If I change Foo::new to Foo->new it works as I expect.

But you aren't inheriting any constructors here.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found