http://qs321.pair.com?node_id=642913


in reply to Re: Can locate when called directly, but can't when in @ISA
in thread Can locate when called directly, but can't when in @ISA

You can do both by using the 'base' pragma

... but before switching to "use base", the OP may want to form his own opinion about the objections a couple of renowned monks have had in the thread 'base' versus @ISA, why?.

Replies are listed 'Best First'.
Re^3: Can locate when called directly, but can't when in @ISA
by perlfan (Vicar) on Oct 05, 2007 at 14:34 UTC
    That was helpful information, but I am no an OOP super freak either. For my needs, use base 'parent'; works perfectly and I am able to easily augment the parent's creation class with out any problems:
    use base 'My::Parent::Class'; sub new { my $pkg = shift; my $self = $pkg->SUPER::new(@_); return $self; }