in reply to Re^4: Designing an OO program with multiple inherited classes
in thread Designing an OO program with multiple inherited classes
so that the Obj instance passes itself as the first parameter to Foo::foo. Then addmy $self = $_[0]; # instead of $self = shift
to the start of Foo::foo to get the Foo instance in $self and the invoking Obj instance in $caller. You'll then be able to reference the relevant bits of $obj as $caller->cid, $caller->dbh, etc.my $self = shift; my $caller = shift;
|
|---|