Help for this page

Select Code to Download


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