|
|
| "be consistent" | |
| PerlMonks |
Re^5: Simple inheritance questionby webfiend (Priest) |
| on Apr 23, 2010 at 17:12 UTC ( #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
|
|
||||||||||||||||||||||