http://qs1969.pair.com?node_id=508702


in reply to How to use Inheritance with Inside-Out Classes and Hash Based Classes

You just hit the problem with inheritance - you're extending the class, which means you're tied to its implementation details.

You might want to look at delegation. Basically, you would contain a File::Samba object and you forward any method you don't override to it. Take a look at Tree::Compat for an example.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?