http://www.perlmonks.org?node_id=836570


in reply to Re^4: Simple inheritance question
in thread Simple inheritance question

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.