in reply to Class data and inheritance
Then in the derived class you simply do this:package IDObject; my $db; sub set_db { $db = shift; } sub get_db { return $db }
sub fix_it { my $this = shift; my $what = shift; my $results = $this->get_db->search($what); . . }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Class data and inheritance
by joe++ (Friar) on Nov 07, 2002 at 14:50 UTC |