in reply to Re: Confused about splitting program into multiple files.
in thread Confused about splitting program into multiple files.
use Class::MethodMaker;
instead of
use base Class::MethodMaker;
or
use Class::MethodMaker; our @ISA = qw/Class::MethodMaker/;
In other words, when should you choose inheritance rather than simple use? The barometer that I've kind of adopted is if I want my object or class to behave as a parent class, inherit. It seems that Class::MethodMaker is one of those cases.
Please forgive my continued novicity on this subject. ;)
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
3Re: Confused about splitting program into multiple files.
by jeffa (Bishop) on Feb 15, 2004 at 16:28 UTC |