in reply to Re: Extending objects
in thread Extending objects
use FooBar::Foo.pm use FooBar::Bar.pm
I want the user to be shielded from the inner workings of Foobar. So, as far as the user is concerned, only the following should be required in foo.pl
use Foobar;
That way I can add more "parents" to Foobar in the future, if required. For example, I could modify Foobar to inherit from Baz.pm as well, but the user would not have to change foo.pl.
All that said, many thanks for your very clear explanation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extending objects
by stevieb (Canon) on Jul 07, 2010 at 15:43 UTC |