- or download this
package MyClass;
...
bless $self;
return $self;
}
- or download this
my $a_ref = ClassA->new();
my $b_ref = ClassB->new();
my $obj_ref = MyClass->new($a_ref, $b_ref);
- or download this
sub do_stuff { #this function is defined in MyClass
$self = shift;
$self->{ObjA_ref}->display_output("blah");