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


in reply to Re: Private method variations
in thread Private method variations

Problem is, that is run-time, not compile-time stuff.

When called from inappropriate classes, those methods throw an exception like foo() is a protected method of Foo!.

Can't say I like that. I want to know if my system is broken before I happen to stumble across a particular leg of code -- especially if it's not going to be covered very often.

Yes, some one else is going to chime in and say "Perl OO isn't like that", and I'll say "why shouldn't it be?". Hint: that's a rhetorical question.