Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^5: Simple inheritance questionby webfiend (Vicar) |
on Apr 23, 2010 at 17:12 UTC ( [id://836570]=note: print w/replies, xml ) | Need Help?? |
Glad you got the solution you needed. I was a little unclear on the original question. I also think it's interesting that One doesn't need a constructor in the object solution. It makes sense, considering that a One is never instantiated. I didn't realize that Perl's package handling let's you "inherit" from a package that isn't actually a class. We learn something every day if we give ourselves a chance.
In Section
Seekers of Perl Wisdom
|
|