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?? |
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.
In Section
Seekers of Perl Wisdom
|
|